summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-03-08 05:35:59 +0000
committerkientzle <kientzle@FreeBSD.org>2009-03-08 05:35:59 +0000
commit93903defedf9719b27e8b5d67e9084fef1cec297 (patch)
treee670611b7ddd0561361437160d778d9715725267 /usr.bin/tar
parent2016bf66edb8b2eea284180762cd6c086df1d766 (diff)
downloadFreeBSD-src-93903defedf9719b27e8b5d67e9084fef1cec297.zip
FreeBSD-src-93903defedf9719b27e8b5d67e9084fef1cec297.tar.gz
Merge r622 from libarchive.googlecode.com: Avoid warning on platforms
that lack regex.h.
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/util.c b/usr.bin/tar/util.c
index 9f3fc92..367409b 100644
--- a/usr.bin/tar/util.c
+++ b/usr.bin/tar/util.c
@@ -453,8 +453,8 @@ edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry)
const char *name = archive_entry_pathname(entry);
#if HAVE_REGEX_H
char *subst_name;
-#endif
int r;
+#endif
#if HAVE_REGEX_H
r = apply_substitution(bsdtar, name, &subst_name, 0);
OpenPOWER on IntegriCloud