Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit bef16f42 authored by Rob Swindell's avatar Rob Swindell 💬

if strListFind() is passed a NULL 'str' value, return -1 (not found)

Return int value for "string not found" rather than crash/segfault. Seems the better option.
parent 0b3804ff
......@@ -69,7 +69,7 @@ int strListFind(const str_list_t list, const char* str, BOOL case_sensitive)
size_t i;
if(list == NULL || str == NULL)
return -1;
for(i=0; list[i]!=NULL; i++) {
Markdown is supported
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