]> git.sur5r.net Git - bacula/bacula/commitdiff
Yet another client==NULL
authorKern Sibbald <kern@sibbald.com>
Sat, 26 Jul 2014 19:42:33 +0000 (21:42 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 26 Jul 2014 19:43:09 +0000 (21:43 +0200)
bacula/src/dird/ua_dotcmds.c

index c4779955a042e1497168446673af4d8e973eb56a..278ea414f774b9c889e0a255013389098e41fd12 100644 (file)
@@ -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 */