From 67b4f3519d838c6f16f5b6b63c0b9b8669fb3dd9 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 12 Mar 2010 09:48:46 +0200 Subject: [PATCH] Bugfixes. * src/buffer.c (check_label_pattern): Initialize result. * tests/remfiles01.at: Skip if run with root privileges. --- src/buffer.c | 2 +- tests/remfiles01.at | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 8e1bb9b..dfc8456 100644 --- a/src/buffer.c +++ b/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; diff --git a/tests/remfiles01.at b/tests/remfiles01.at index 940fd95..73752b4 100644 --- a/tests/remfiles01.at +++ b/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 -- 2.44.0