diff --git a/src/xpdev/str_list.c b/src/xpdev/str_list.c
index 51e37b03dbd450c371742f3cf6b1ac39e5d36d1f..e91cc3162a561c3674eb404a758d345f4b609278 100644
--- a/src/xpdev/str_list.c
+++ b/src/xpdev/str_list.c
@@ -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