Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: initialise script structure in start_validate_reload_conf_child() #2408

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keepalived/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ reload_check_child_thread(thread_ref_t thread)
static void
start_validate_reload_conf_child(void)
{
notify_script_t script;
notify_script_t script = { .path = NULL };
int i;
int ret;
int argc;
Expand Down
2 changes: 1 addition & 1 deletion lib/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ system_call_script(thread_master_t *m, thread_func_t func, void * arg, unsigned
execve(script->path ? script->path : script->args[0], args.execve_args, environ);

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

Expand Down
Loading