Skip to content
Snippets Groups Projects
Commit a5ed96ee 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 3b2e015c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment