Fix coverity CID-602. Possible use of uninitialized var.
authorJeremy Allison <jra@samba.org>
Wed, 18 Feb 2009 23:43:03 +0000 (15:43 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 19 Feb 2009 09:24:13 +0000 (10:24 +0100)
Jeremy.
(cherry picked from commit 43db14008eb660f1b1f21e1ff6dd2d340d1106ab)

source/libsmb/namequery.c

index dd3cd56467ba62323a150555dd219b4e659f96d3..d21941efd22c956ed5bbfea6ece7de6d8b372866 100644 (file)
@@ -2141,7 +2141,7 @@ NTSTATUS get_sorted_dc_list( const char *domain,
                        int *count,
                        bool ads_only )
 {
-       bool ordered;
+       bool ordered false;
        NTSTATUS status;
        enum dc_lookup_type lookup_type = DC_NORMAL_LOOKUP;