From 7ab6b3b5cc233ef3d7a10bda63ea786644e5acaf Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 23 Jan 2016 11:35:45 +0100 Subject: [PATCH] Fix possible problem of show multiple resources --- bacula/src/dird/ua_output.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5