summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/src/unescape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/src/unescape.c b/lib/src/unescape.c
index ea5c9e2..2d48c92 100644
--- a/lib/src/unescape.c
+++ b/lib/src/unescape.c
@@ -80,6 +80,9 @@ int unescape(char *src)
default:
return -1;
}
+
+ if (c == 0)
+ return -1;
}
*(dst++) = c;