pidl:Samba4/NDR/Parser: always initialize _mem_save_ pointers to NULL
authorStefan Metzmacher <metze@samba.org>
Tue, 7 Jul 2015 11:01:16 +0000 (13:01 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 7 Jul 2015 12:05:28 +0000 (14:05 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm

index a267fb1..f52d4b1 100644 (file)
@@ -1688,7 +1688,7 @@ sub DeclareMemCtxVariables($$)
                }
 
                if (defined($mem_flags)) {
-                       $self->pidl("TALLOC_CTX *_mem_save_$e->{NAME}_$l->{LEVEL_INDEX};");
+                       $self->pidl("TALLOC_CTX *_mem_save_$e->{NAME}_$l->{LEVEL_INDEX} = NULL;");
                }
        }
 }