Skip to content

Commit 9ee268d

Browse files
authored
Merge pull request #2408 from pqarmitage/updates
core: initialise script structure in start_validate_reload_conf_child()
2 parents fedfe52 + b9e991e commit 9ee268d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

keepalived/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ reload_check_child_thread(thread_ref_t thread)
994994
static void
995995
start_validate_reload_conf_child(void)
996996
{
997-
notify_script_t script;
997+
notify_script_t script = { .path = NULL };
998998
int i;
999999
int ret;
10001000
int argc;

lib/notify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ system_call_script(thread_master_t *m, thread_func_t func, void * arg, unsigned
214214
execve(script->path ? script->path : script->args[0], args.execve_args, environ);
215215

216216
/* error */
217-
log_message(LOG_ALERT, "Error exec-ing command '%s', error %d: %m", script->args[0], errno);
217+
log_message(LOG_ALERT, "Error exec-ing command '%s', error %d: %m", script->path ? script->path : script->args[0], errno);
218218
} else {
219219
retval = system(str = cmd_str(script));
220220

0 commit comments

Comments
 (0)