Imported Upstream version 3.3.3
[debian/amanda] / application-src / amgtar.c
index 47103ad45a466f0f248ce5ce47944e0c518b851b..285b05c3fb14c40fcf418cd4bddf22abe8893a78 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
  * Copyright (c) 1991-1998 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  * All Rights Reserved.
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
@@ -361,7 +362,6 @@ main(
     /* parse argument */
     command = argv[1];
 
-    gnutar_listdir = stralloc(getconf_str(CNF_GNUTAR_LIST_DIR));
     argument.config     = NULL;
     argument.host       = NULL;
     argument.message    = 0;
@@ -532,6 +532,10 @@ main(
        g_critical(_("errors processing config file"));
     }
 
+    if (!gnutar_listdir) {
+       gnutar_listdir = g_strdup(getconf_str(CNF_GNUTAR_LIST_DIR));
+    }
+
     re_table = build_re_table(init_re_table, normal_message, ignore_message,
                              strange_message);