Fix use of uninitialized memory in chdir() failure handling code path

This commit is contained in:
Nedko Arnaudov 2012-11-19 05:49:33 +02:00
parent ad6dbf1392
commit 0660f36589
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ loader_exec_program(
/* change the working dir */
if (chdir(working_dir) == -1)
{
fprintf(stderr, "Could not change directory to working dir '%s' for program '%s': %s\n", working_dir, argv[0], strerror(errno));
fprintf(stderr, "Could not change directory to working dir '%s' for app '%s': %s\n", working_dir, app_name, strerror(errno));
}
setenv("LADISH_APP_NAME", app_name, true);