Initialize _domain_list to NULL.
authorMichael Adam <obnox@samba.org>
Wed, 23 Jan 2008 12:52:42 +0000 (13:52 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jan 2008 12:52:42 +0000 (13:52 +0100)
Just to be sure the "if (!_domain_list)" in domain_list() test always works.

Michael

source/winbindd/winbindd_util.c

index dc48fdef8b1816ac6b44858a9ecc184b2f531c4e..038105333138e739c137b2c7f510f54c3777b594 100644 (file)
@@ -41,7 +41,7 @@ extern struct winbindd_methods passdb_methods;
    individual winbindd_domain structures cannot be made.  Keep a copy of
    the domain name instead. */
 
-static struct winbindd_domain *_domain_list;
+static struct winbindd_domain *_domain_list = NULL;
 
 /**
    When was the last scan of trusted domains done?