Skip to content

Commit

Permalink
Fix uninitialized variable if _lib_readlink is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnoKing committed Jan 30, 2024
1 parent e1527c7 commit b13471f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/ksh93/sh/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ pid_t path_spawn(const char *opath,char **argv, char **envp, Pathcomp_t *libpath
char **xp=0, *xval, *libenv = (libpath?libpath->lib:0);
Namval_t* np;
char *s, *v;
int r, n, pidsize;
int r, n, pidsize=0;
pid_t pid= -1;
if(nv_search(opath,sh.bltin_tree,0))
{
Expand Down

0 comments on commit b13471f

Please sign in to comment.