From 128a16f156e36ee6037f0ae387643cc5456a5514 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Tue, 10 Jan 2006 02:49:25 +0000 Subject: [PATCH] Corrected output in .defaults command, when pool's label_format is NULL git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2733 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_dotcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index 8770d38258..4e33a4523b 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -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); -- 2.39.5