From: Kern Sibbald Date: Sat, 23 Jan 2016 10:35:45 +0000 (+0100) Subject: Fix possible problem of show multiple resources X-Git-Tag: Release-7.4.0a~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ab6b3b5cc233ef3d7a10bda63ea786644e5acaf;p=bacula%2Fbacula Fix possible problem of show multiple resources --- diff --git a/bacula/src/dird/ua_output.c b/bacula/src/dird/ua_output.c index 49b578dec6..70f87f4d41 100644 --- a/bacula/src/dird/ua_output.c +++ b/bacula/src/dird/ua_output.c @@ -142,7 +142,7 @@ int show_cmd(UAContext *ua, const char *cmd) int i, j, type, len; int recurse; char *res_name; - RES *res = NULL; + RES *res; Dmsg1(20, "show: %s\n", ua->UA_sock->msg); @@ -155,7 +155,7 @@ int show_cmd(UAContext *ua, const char *cmd) } type = 0; - + res = NULL; res_name = ua->argk[i]; if (!ua->argv[i]) { /* was a name given? */ /* No name, dump all resources of specified type */ @@ -172,7 +172,6 @@ int show_cmd(UAContext *ua, const char *cmd) break; } } - } else { /* Dump a single resource with specified name */ recurse = 0;