Commit a5ed96ee authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

strListJoin() will now fail gracefully (return NULL) if passed NULL buf

No immediate need/use.
parent 3b2e015c
......@@ -702,7 +702,7 @@ char* strListJoin(const str_list_t list, char* buf, size_t buflen, const char* s
{
size_t i;
if(buflen < 1)
if(buf == NULL || buflen < 1)
return NULL;
*buf = '\0';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment