aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd-list.c')
-rw-r--r--src/satd-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/satd-list.c b/src/satd-list.c
index 0f0cfa9..53cbe06 100644
--- a/src/satd-list.c
+++ b/src/satd-list.c
@@ -49,6 +49,10 @@ quote(const char *str)
const unsigned char *s;
char *rc = NULL;
+ if (!*str) {
+ return strdup("''");
+ }
+
for (s = (const unsigned char *)str; *s; s++) {
if (*s < ' ') in++;
else if (*s == 127) in++;