r13393: Do not initialize the lp_svcctl_list() value since it is handled
[kai/samba.git] / source3 / lib / util_str.c
index 85b5cfc90a7bec7523614e3cc0dd4ab16e8e36ad..957ebd57bdd75fe88f854c8ad36777c044af9919 100644 (file)
@@ -1852,6 +1852,9 @@ int str_list_count( const char **list )
 {
        int i = 0;
 
+       if ( ! list )
+               return 0;
+
        /* count the number of list members */
        
        for ( i=0; *list; i++, list++ );