Skip to content

Commit

Permalink
Fix sys_vars.wsrep_provider_options_basic test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadb-SachinSetiya committed Apr 18, 2017
1 parent 5ca8121 commit 1d821ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wsrep/wsrep_dummy.c
Expand Up @@ -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(
Expand Down

0 comments on commit 1d821ba

Please sign in to comment.