aboutsummaryrefslogtreecommitdiff
path: root/sdn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sdn.cpp')
-rw-r--r--sdn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdn.cpp b/sdn.cpp
index bf12889..13e2f0e 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -114,7 +114,7 @@ fun needs_shell_quoting (const string &v) -> bool {
for (auto c : v)
if (strchr ("|&;<>()$`\\\"' \t\n" "*?[#˜=%" "!", c))
return true;
- return false;
+ return v.empty ();
}
fun shell_escape (const string &v) -> string {