From 50926f56b82a40afafcadbacf0b9fe5e8ac948c6 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 1 Sep 2004 10:14:16 +0000
Subject: [PATCH] strListCount() now uses COUNT_LIST_ITEMS macro.

---
 src/xpdev/str_list.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/xpdev/str_list.c b/src/xpdev/str_list.c
index 1edabb5241..d199e915bb 100644
--- a/src/xpdev/str_list.c
+++ b/src/xpdev/str_list.c
@@ -55,11 +55,7 @@ size_t strListCount(const str_list_t list)
 {
 	size_t i;
 
-	if(list==NULL)
-		return(0);
-
-	for(i=0; list[i]!=NULL; i++)
-		;
+	COUNT_LIST_ITEMS(list,i);
 
 	return(i);
 }
-- 
GitLab