@@ -21,7 +21,7 @@ fn hookBootConfigCommon() ?[*:0]const os_char {
2121
2222 const path = switch (builtin .os .tag ) {
2323 .macos = > blk : {
24- var program_path_buf = util.paths.ProgramPathBuf {} ;
24+ var program_path_buf : util.paths.ProgramPathBuf = undefined ;
2525 const program_path = program_path_buf .get ();
2626 const app_folder = util .paths .getFolderName (u8 , util .paths .getFolderName (u8 , program_path ));
2727
@@ -32,7 +32,7 @@ fn hookBootConfigCommon() ?[*:0]const os_char {
3232 ) catch @panic ("Out of memory" );
3333 },
3434 else = > blk : {
35- var program_path_buf = util.paths.ProgramPathBuf {} ;
35+ var program_path_buf : util.paths.ProgramPathBuf = undefined ;
3636 const program_path = program_path_buf .get ();
3737 const file_name = util .paths .getFileName (os_char , program_path , false );
3838
@@ -185,7 +185,7 @@ fn redirectInit(
185185 // However, using handle seems to cause issues on some distros, so we pass
186186 // the resolved symbol instead.
187187 // TODO: document specific cases
188- var buf = util.paths.ModulePathBuf {} ;
188+ var buf : util.paths.ModulePathBuf = undefined ;
189189 const path = buf .get (switch (builtin .os .tag ) {
190190 .windows = > handle ,
191191 else = > std .c .dlsym (handle , name ),
0 commit comments