summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-08 15:09:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:09:58 -0500
commitef3f2c9675194efa17cfd4b4b5393a6e0a335bdf (patch)
treee60dc191e4747a7fb678297701cecb2d1b6c60cb /source3/lib
parent034877ca335c64f6e2a08155c5856e03448397e1 (diff)
downloadsamba-ef3f2c9675194efa17cfd4b4b5393a6e0a335bdf.tar.gz
samba-ef3f2c9675194efa17cfd4b4b5393a6e0a335bdf.tar.bz2
samba-ef3f2c9675194efa17cfd4b4b5393a6e0a335bdf.zip
r13393: Do not initialize the lp_svcctl_list() value since it is handled
internally in services_db.c now. This prevents internal services from being listed twice (one internal and one external) when no 'svcctl list' parameter is explcitly set in smb.conf (This used to be commit 6c4ede6cee7e1d25a6357e959972e8d390c27fe3)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 85b5cfc90a..957ebd57bd 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -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++ );