s3: Fix 'ctx' might be used unitialized warnings
authorTim Prouty <tprouty@samba.org>
Tue, 2 Dec 2008 05:56:59 +0000 (21:56 -0800)
committerTim Prouty <tprouty@samba.org>
Tue, 2 Dec 2008 05:59:00 +0000 (21:59 -0800)
source3/winbindd/idmap_ad.c

index 05d7d98cae9c906fa2655efe315816ac8cb769ed..b22e5af94aece5bcc7975232c6816e81c26003a2 100644 (file)
@@ -933,7 +933,7 @@ static NTSTATUS nss_ad_map_to_alias(TALLOC_CTX *mem_ctx,
        ADS_STATUS ads_status = ADS_ERROR_NT(NT_STATUS_UNSUCCESSFUL);
        NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
        struct idmap_domain *dom;
-       struct idmap_ad_context *ctx;
+       struct idmap_ad_context *ctx = NULL;
 
        /* Check incoming parameters */
 
@@ -1013,7 +1013,7 @@ static NTSTATUS nss_ad_map_from_alias( TALLOC_CTX *mem_ctx,
        NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
        char *username;
        struct idmap_domain *dom;
-       struct idmap_ad_context *ctx;
+       struct idmap_ad_context *ctx = NULL;
 
        /* Check incoming parameters */