]> git.sur5r.net Git - bacula/bacula/commitdiff
Corrected output in .defaults command, when pool's label_format is NULL
authorLucas Di Pentima <lucas@lunix.com.ar>
Tue, 10 Jan 2006 02:49:25 +0000 (02:49 +0000)
committerLucas Di Pentima <lucas@lunix.com.ar>
Tue, 10 Jan 2006 02:49:25 +0000 (02:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2733 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_dotcmds.c

index 8770d38258625d3467c3aad37a86e12a5afd4fc9..4e33a4523b47b5c926620078b40e5935a12c2726 100644 (file)
@@ -308,7 +308,7 @@ static int defaultscmd(UAContext *ua, const char *cmd)
      if (pool) {
        bsendmsg(ua, "pool=%s", pool->hdr.name);
        bsendmsg(ua, "pool_type=%s", pool->pool_type);
-       bsendmsg(ua, "label_format=%s", pool->label_format);
+       bsendmsg(ua, "label_format=%s", pool->label_format?pool->label_format:"");
        bsendmsg(ua, "use_volume_once=%d", pool->use_volume_once);
        bsendmsg(ua, "accept_any_volume=%d", pool->accept_any_volume);
        bsendmsg(ua, "purge_oldest_volume=%d", pool->purge_oldest_volume);