Author: tridge Date: 2006-09-11 00:24:21 +0000 (Mon, 11 Sep 2006) New Revision: 18348
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18348 Log: fixed a valgrind error in RPC-SRVSVC Modified: branches/SAMBA_4_0/source/torture/rpc/srvsvc.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/srvsvc.c =================================================================== --- branches/SAMBA_4_0/source/torture/rpc/srvsvc.c 2006-09-10 22:53:21 UTC (rev 18347) +++ branches/SAMBA_4_0/source/torture/rpc/srvsvc.c 2006-09-11 00:24:21 UTC (rev 18348) @@ -788,6 +788,7 @@ again: /* Find maximum length accepted by this type */ + ZERO_STRUCT(r.out); r.in.name_type = i; r.in.name = talloc_strdup(mem_ctx, "A"); n = 0; @@ -814,7 +815,7 @@ /* find invalid chars for this type check only ASCII between 0x20 and 0x7e */ - invalidc = NULL; + invalidc = talloc_strdup(mem_ctx, ""); for (n = 0x20; n < 0x7e; n++) { r.in.name = talloc_asprintf(mem_ctx, "%c", (char)n);