pidl:NDR/Parser: use '0' instead of 'NULL' for an uint32_t value
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Aug 2011 11:00:30 +0000 (13:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 1 Aug 2011 11:44:26 +0000 (13:44 +0200)
metze

pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm

index e2c901253de2352159515b81026fae9b0eb47e17..e80a77895eed629435700f9b4f7d3cffcfc5c7d4 100644 (file)
@@ -1215,7 +1215,7 @@ sub ParsePtrPull($$$$$)
        } elsif ($l->{POINTER_TYPE} eq "ignore") {
                 #We want to consume the pointer bytes, but ignore the pointer value
                $self->pidl("NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &_ptr_$e->{NAME}));");
-               $self->pidl("_ptr_$e->{NAME} = NULL;");
+               $self->pidl("_ptr_$e->{NAME} = 0;");
        } else {
                die("Unhandled pointer type $l->{POINTER_TYPE}");
        }