changeset 488:8917c39ef6c5

Oops. Forgot to declare a variable.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 Sep 2019 06:20:17 +0300
parents 702c64a6c570
children 41c1d786ff08
files th_string.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Thu Sep 19 06:18:50 2019 +0300
+++ b/th_string.c	Thu Sep 19 06:20:17 2019 +0300
@@ -110,6 +110,8 @@
 
 char *th_strndup_no0(const char *src, const size_t len)
 {
+    char *res;
+
     if ((res = th_malloc(len + 1)) == NULL)
         return NULL;