Initialize return code in case something mysterious happens.

This commit is contained in:
Nicholas Marriott 2020-05-09 16:07:30 +01:00
parent 013d857ef8
commit 532d06c399

View File

@ -190,7 +190,8 @@ cmd_run_shell_callback(struct job *job)
retcode = WTERMSIG(status); retcode = WTERMSIG(status);
xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode); xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode);
retcode += 128; retcode += 128;
} } else
retcode = 0;
if (msg != NULL) if (msg != NULL)
cmd_run_shell_print(job, msg); cmd_run_shell_print(job, msg);
free(msg); free(msg);