diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-13 16:30:40 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-13 16:30:40 +0200 |
commit | 2ce72b5a69e3cf306277460a6d87754bf71c024b (patch) | |
tree | 667137b43d168d61831b4903d5bf74ef9f79d19f /source4/librpc/ndr/ndr_string.c | |
parent | eaba7784160be9dcf40f57c30c6f01a691082ba6 (diff) | |
parent | 345e731fc10b779204b699076876e89237da6cdb (diff) | |
download | samba-2ce72b5a69e3cf306277460a6d87754bf71c024b.tar.gz samba-2ce72b5a69e3cf306277460a6d87754bf71c024b.tar.bz2 samba-2ce72b5a69e3cf306277460a6d87754bf71c024b.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source4/librpc/ndr/ndr_string.c')
-rw-r--r-- | source4/librpc/ndr/ndr_string.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr_string.c b/source4/librpc/ndr/ndr_string.c index 79548f81bc..a143284f17 100644 --- a/source4/librpc/ndr/ndr_string.c +++ b/source4/librpc/ndr/ndr_string.c @@ -587,8 +587,7 @@ _PUBLIC_ void ndr_print_string_array(struct ndr_print *ndr, const char *name, co ndr->depth++; for (i=0;i<count;i++) { char *idx=NULL; - asprintf(&idx, "[%d]", i); - if (idx) { + if (asprintf(&idx, "[%d]", i) != -1) { ndr_print_string(ndr, idx, a[i]); free(idx); } |