]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix segfault in lsmark command in restore tree.
authorKern Sibbald <kern@sibbald.com>
Fri, 8 Oct 2004 19:57:27 +0000 (19:57 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 8 Oct 2004 19:57:27 +0000 (19:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1639 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_tree.c

index 13c678184745e1708a1da01acd51d82a7cc61c2c..769a069b08364eee42de022a329d28d89e55f753 100644 (file)
@@ -418,12 +418,13 @@ static int lscmd(UAContext *ua, TREE_CTX *tree)
 /*
  * Ls command that lists only the marked files
  */
-static void rlsmark(UAContext *ua, TREE_NODE *node) 
+static void rlsmark(UAContext *ua, TREE_NODE *tnode) 
 {
-   if (!tree_node_has_child(node)) {    
+   TREE_NODE *node;
+   if (!tree_node_has_child(tnode)) {    
       return;
    }
-   foreach_child(node, node) {
+   foreach_child(node, tnode) {
       if ((ua->argc == 1 || fnmatch(ua->argk[1], node->fname, 0) == 0) &&
          (node->extract || node->extract_dir)) {
         const char *tag;