Commit 3662b9c4 3662b9c4747962ceabef9300da095f7e63b758be by Sergey Poznyakoff

(str_append): Check for NULL.

1 parent 5dac9802
......@@ -132,6 +132,8 @@ static int str_append_n(char** to, const char* from, size_t n)
}
static int str_append(char** to, const char* from)
{
if (!from)
return 0;
return str_append_n(to, from, strlen(from));
}
static int str_append_char(char** to, char c)
......