]> git.sur5r.net Git - bacula/bacula/commitdiff
Small cleanup for bvfs
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 24 Oct 2010 15:46:35 +0000 (17:46 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 12 Nov 2010 08:13:57 +0000 (09:13 +0100)
bacula/src/dird/ua_dotcmds.c

index c7fd97dead279360f7305f9d5ad26771fc25b79a..1677435338f15fcf76b99a99cc08962aef81f949 100644 (file)
@@ -181,9 +181,7 @@ static bool dot_bvfs_update(UAContext *ua, const char *cmd)
 
    int pos = find_arg_with_value(ua, "jobid");
    if (pos != -1 && is_a_number_list(ua->argv[pos])) {
-      POOL_MEM jobids;
-      pm_strcpy(jobids, ua->argv[pos]);
-      bvfs_update_path_hierarchy_cache(ua->jcr, ua->db, jobids.c_str());
+      bvfs_update_path_hierarchy_cache(ua->jcr, ua->db, ua->argv[pos]);
    } else {
       /* update cache for all jobids */
       bvfs_update_cache(ua->jcr, ua->db);