From: Kern Sibbald Date: Fri, 11 Mar 2005 12:55:17 +0000 (+0000) Subject: Fix error message X-Git-Tag: Release-1.38.0~599 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81f562612f84b9a246ae0b9ec7e5fbdca3fe07c7;p=bacula%2Fbacula Fix error message git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1883 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 201d301fb6..29ed6249b3 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -782,7 +782,7 @@ static bool autochanger_cmd(JCR *jcr) BSOCK *dir = jcr->dir_bsock; DEVICE *dev; DCR *dcr; - const char *cmd; + const char *cmd = NULL; bool ok = false; if (sscanf(dir->msg, "autochanger list %127s ", devname.c_str()) == 1) { @@ -819,8 +819,8 @@ static bool autochanger_cmd(JCR *jcr) } } else { /* error on scanf */ pm_strcpy(jcr->errmsg, dir->msg); - bnet_fsend(dir, _("3908 Error scanning autocharger %s command: %s\n"), - cmd, jcr->errmsg); + bnet_fsend(dir, _("3908 Error scanning autocharger list/slots command: %s\n"), + jcr->errmsg); } bnet_sig(dir, BNET_EOD); return true;