repmgr: avoid (null) in local_command debug output

This commit is contained in:
Ian Barwick
2016-09-01 12:14:36 +09:00
parent 2105837ef4
commit 171df20386

View File

@@ -6875,7 +6875,10 @@ local_command(const char *command, PQExpBufferData *outputbuf)
pclose(fp);
log_verbose(LOG_DEBUG, "local_command(): output returned was:\n%s", outputbuf->data);
if (outputbuf->data != NULL)
log_verbose(LOG_DEBUG, "local_command(): output returned was:\n%s", outputbuf->data);
else
log_verbose(LOG_DEBUG, "local_command(): no output returned\n");
return true;
}