persistent_callback: print "no error message given" instead of "(null)"
[sahlberg/ctdb.git] / server / ctdb_persistent.c
index e49eac493c8c42b320064d4da495b15fad69f70b..a6fcf48e3a643099ff25ab91aa805990bf69e795 100644 (file)
@@ -62,7 +62,7 @@ static void ctdb_persistent_callback(struct ctdb_context *ctdb,
 
        if (status != 0) {
                DEBUG(DEBUG_ERR,("ctdb_persistent_callback failed with status %d (%s)\n",
-                        status, errormsg));
+                        status, errormsg?errormsg:"no error message given"));
                state->status = status;
                state->errormsg = errormsg;
                state->num_failed++;