# HG changeset patch # User Matti Hamalainen # Date 1568863217 -10800 # Node ID 8917c39ef6c5037b98bf403f3fc17c4fb30ce4da # Parent 702c64a6c570f65625d5253a9bba3efff53c7679 Oops. Forgot to declare a variable. diff -r 702c64a6c570 -r 8917c39ef6c5 th_string.c --- 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;