summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--twrpTar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 48d529b63..e77e1d059 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -714,6 +714,8 @@ int twrpTar::tarDirs(bool include_root) {
string dir(tardir + "/" + de->d_name);
skip_dir = du.check_skip_dirs(dir);
if (skip_dir) continue;
+#else
+ string dir;
#endif
dir = de->d_name;
skip_dir = du.check_skip_dirs(dir);