Skip to content
Snippets Groups Projects
Commit b869bf8c 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 c7ca69e9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -590,8 +590,7 @@ int strListCmp(str_list_t list1, str_list_t list2) ...@@ -590,8 +590,7 @@ int strListCmp(str_list_t list1, str_list_t list2)
strListSortAlphaCase(l1); strListSortAlphaCase(l1);
strListSortAlphaCase(l2); strListSortAlphaCase(l2);
for(; *l1; l1++) { for(; *l1; l1++, l2++) {
l2++;
if(*l2==NULL) { if(*l2==NULL) {
ret=1; ret=1;
goto early_return; goto early_return;
...@@ -602,7 +601,6 @@ int strListCmp(str_list_t list1, str_list_t list2) ...@@ -602,7 +601,6 @@ int strListCmp(str_list_t list1, str_list_t list2)
goto early_return; goto early_return;
} }
} }
l2++;
if(*l2==NULL) if(*l2==NULL)
ret=0; ret=0;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment