Przeglądaj źródła

Bugfixes.

* src/buffer.c (check_label_pattern): Initialize result.
* tests/remfiles01.at: Skip if run with root privileges.
Sergey Poznyakoff 15 lat temu
rodzic
commit
67b4f3519d
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 1
      src/buffer.c
  2. 1 0
      tests/remfiles01.at

+ 1 - 1
src/buffer.c

@@ -1374,7 +1374,7 @@ static bool
 check_label_pattern (const char *label)
 {
   char *string;
-  bool result;
+  bool result = false;
 
   if (fnmatch (volume_label_option, label, 0) == 0)
     return true;

+ 1 - 0
tests/remfiles01.at

@@ -30,6 +30,7 @@ AT_KEYWORDS([create remove-files remfiles01 gzip])
 
 unset TAR_OPTIONS
 AT_CHECK([
+AT_UNPRIVILEGED_PREREQ
 AT_GZIP_PREREQ
 AT_SORT_PREREQ