summaryrefslogtreecommitdiff
path: root/wsrep/wsrep_dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'wsrep/wsrep_dummy.c')
-rw-r--r--wsrep/wsrep_dummy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsrep/wsrep_dummy.c b/wsrep/wsrep_dummy.c
index 5f1ea63cc40..7c3e3d7f9e2 100644
--- a/wsrep/wsrep_dummy.c
+++ b/wsrep/wsrep_dummy.c
@@ -86,7 +86,8 @@ static wsrep_status_t dummy_options_set(
static char* dummy_options_get (wsrep_t* w)
{
WSREP_DBUG_ENTER(w);
- return strdup(WSREP_DUMMY(w)->options);
+ char * opt= WSREP_DUMMY(w)->options;
+ return opt ? strdup(opt) : NULL;
}
static wsrep_status_t dummy_connect(