Skip to content

Commit

Permalink
dird: add nullpointer guard
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Nov 13, 2019
1 parent 438d47c commit 97e5259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/dird/ua_dotcmds.cc
Expand Up @@ -1457,8 +1457,9 @@ bool DotDefaultsCmd(UaContext* ua, const char* cmd)
"%s\n");
ua->send->SendBuffer();
GetJobStorage(&store, job, NULL);
ua->send->ObjectKeyValue("storage", "%s=", store.store->resource_name_,
"%s\n");
ua->send->ObjectKeyValue(
"storage",
"%s=", store.store ? store.store->resource_name_ : "*None*", "%s\n");
ua->send->SendBuffer();
ua->send->ObjectKeyValue(
"where", "%s=", (job->RestoreWhere ? job->RestoreWhere : ""), "%s\n");
Expand Down

0 comments on commit 97e5259

Please sign in to comment.