diff options
| author | Sachin Setiya <sachin.setiya@mariadb.com> | 2017-04-18 14:00:21 +0530 |
|---|---|---|
| committer | Sachin Setiya <sachin.setiya@mariadb.com> | 2017-04-18 14:00:21 +0530 |
| commit | 1d821bad8cc4a64a27092fa1f476fef6a5deea21 (patch) | |
| tree | dca2c1be49d8e0d86101ca78dca0792961c2783a | |
| parent | 5ca8121292df337849811458b6c6671f7e9b2080 (diff) | |
| download | mariadb-git-bb-5.5-sachin-merge.tar.gz | |
Fix sys_vars.wsrep_provider_options_basic test failure.bb-sachin-5.5-galerabb-5.5-sachin-merge
| -rw-r--r-- | wsrep/wsrep_dummy.c | 3 |
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( |
