From 0435bda115b9625956195021c2167fa4cd185fb8 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 29 Jan 2019 20:42:33 +0900 Subject: [PATCH] Fix string comparison --- repmgr-action-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr-action-daemon.c b/repmgr-action-daemon.c index 079b04e0..73c9b449 100644 --- a/repmgr-action-daemon.c +++ b/repmgr-action-daemon.c @@ -577,7 +577,7 @@ void do_daemon_stop(void) pidfile); log_detail("%s", strerror(errno)); - if (config_file_options.repmgrd_pid_file == '\0') + if (config_file_options.repmgrd_pid_file[0] == '\0') log_hint(_("set \"repmgrd_pid_file\" in \"%s\""), config_file_path); exit(ERR_REPMGRD_SERVICE); }