From: Kern Sibbald Date: Sat, 26 Jul 2014 19:42:33 +0000 (+0200) Subject: Yet another client==NULL X-Git-Tag: Release-7.0.5~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=817e96b547cb73cb6c250808aa1a0e897240d242;p=bacula%2Fbacula Yet another client==NULL --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index c4779955a0..278ea414f7 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -1412,7 +1412,7 @@ static bool defaultscmd(UAContext *ua, const char *cmd) ua->send_msg("job=%s", job->name()); ua->send_msg("pool=%s", job->pool->name()); ua->send_msg("messages=%s", job->messages->name()); - ua->send_msg("client=%s", job->client->name()); + ua->send_msg("client=%s", job->client?job->client->name():_("*None*")); get_job_storage(&store, job, NULL); ua->send_msg("storage=%s", store.store->name()); ua->send_msg("where=%s", job->RestoreWhere?job->RestoreWhere:""); @@ -1420,7 +1420,7 @@ static bool defaultscmd(UAContext *ua, const char *cmd) ua->send_msg("type=%s", job_type_to_str(job->JobType)); ua->send_msg("fileset=%s", job->fileset->name()); ua->send_msg("enabled=%d", job->enabled); - ua->send_msg("catalog=%s", job->client->catalog->name()); + ua->send_msg("catalog=%s", job->client?job->client->catalog->name():_("*None*")); } } /* Client defaults */