summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-05-08 17:03:54 +0200
committerKarolin Seeger <kseeger@samba.org>2019-05-17 07:18:31 +0000
commit925871f58086ddcc68b386eacdfd99d8b42e9c53 (patch)
tree8f0487856692f9e8821eff039627a2affd0e5ef9 /ctdb
parentf00cb3c18241277574e10c49e4e707076c3e2af5 (diff)
downloadsamba-925871f58086ddcc68b386eacdfd99d8b42e9c53.tar.gz
ctdb:common: Do not print NULL if we don't get a sockpath
sock_socket_start_recv() might not fill sockpath if we return early. Found by GCC 9. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13937 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 830cb7e67568de5f3ce359cb6af3be8ab545c824)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/sock_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/common/sock_daemon.c b/ctdb/common/sock_daemon.c
index e5e16f8af12..6298653f4ec 100644
--- a/ctdb/common/sock_daemon.c
+++ b/ctdb/common/sock_daemon.c
@@ -893,7 +893,7 @@ static void sock_daemon_run_socket_fail(struct tevent_req *subreq)
subreq, struct tevent_req);
struct sock_daemon_run_state *state = tevent_req_data(
req, struct sock_daemon_run_state);
- const char *sockpath = NULL;
+ const char *sockpath = "INVALID";
int ret = 0;
bool status;