libgpo: Fix compiler errors when building with --address-sanitizer
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 03:42:23 +0000 (15:42 +1200)
committerGarming Sam <garming@samba.org>
Thu, 16 Jun 2016 02:40:12 +0000 (04:40 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
libgpo/gpo_fetch.c

index 07141d42cac738a9a673adbc32cf7a1c77c65a0c..97ecd62d9d7843a80097cb283b30b027f7800d6e 100644 (file)
@@ -156,7 +156,7 @@ NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx,
        NTSTATUS result;
        char *server, *service, *nt_path, *unix_path;
        char *nt_ini_path, *unix_ini_path;
-       struct cli_state *cli;
+       struct cli_state *cli = NULL;
 
 
        result = gpo_explode_filesyspath(mem_ctx, cache_dir, gpo->file_sys_path,