Skip to content
Snippets Groups Projects
Commit 0c3406ff authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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

No immediate need/use.
parent 4e4f74cb
No related branches found
No related tags found
No related merge requests found
...@@ -702,7 +702,7 @@ char* strListJoin(const str_list_t list, char* buf, size_t buflen, const char* s ...@@ -702,7 +702,7 @@ char* strListJoin(const str_list_t list, char* buf, size_t buflen, const char* s
{ {
size_t i; size_t i;
if(buflen < 1) if(buf == NULL || buflen < 1)
return NULL; return NULL;
*buf = '\0'; *buf = '\0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment