Author: metze Date: 2005-04-04 05:52:53 +0000 (Mon, 04 Apr 2005) New Revision: 6188
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6188 Log: correct fix for rev 6182 we should start with an empty switch_list in ndr_print as we do for ndr_pull/ndr_push metze Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c =================================================================== --- branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2005-04-03 21:37:13 UTC (rev 6187) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2005-04-04 05:52:53 UTC (rev 6188) @@ -315,16 +315,12 @@ { struct ndr_print *ndr; - ndr = talloc(NULL, struct ndr_print); + ndr = talloc_zero(NULL, struct ndr_print); if (!ndr) return; ndr->print = ndr_print_debug_helper; ndr->depth = 1; ndr->flags = 0; - ndr->switch_list = talloc(ndr, struct ndr_token_list); - if (!ndr->switch_list) - goto fail; fn(ndr, name, ptr); -fail: talloc_free(ndr); } @@ -335,7 +331,7 @@ { struct ndr_print *ndr; - ndr = talloc(NULL, struct ndr_print); + ndr = talloc_zero(NULL, struct ndr_print); if (!ndr) return; ndr->print = ndr_print_debug_helper; ndr->depth = 1;