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

Fix strListCmp() - apparently never tested

This function is used in sbbs_ini.c, but was always returnning non-zero, even
when both string lists were identical.
parent 67a4da03
Branches
Tags
No related merge requests found
......@@ -590,8 +590,7 @@ int strListCmp(str_list_t list1, str_list_t list2)
strListSortAlphaCase(l1);
strListSortAlphaCase(l2);
for(; *l1; l1++) {
l2++;
for(; *l1; l1++, l2++) {
if(*l2==NULL) {
ret=1;
goto early_return;
......@@ -602,7 +601,6 @@ int strListCmp(str_list_t list1, str_list_t list2)
goto early_return;
}
}
l2++;
if(*l2==NULL)
ret=0;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment