summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-13 15:33:40 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-13 15:33:40 +0200
commit6d02f0805a001ae4ac19219c7fff5247e470b0fd (patch)
tree8ba49eff2209b6dda2c1a5a560141dc8ef287588 /source4
parent58f844ab5422490d49b21701ffbe706c06b8c40a (diff)
downloadsamba-6d02f0805a001ae4ac19219c7fff5247e470b0fd.tar.gz
samba-6d02f0805a001ae4ac19219c7fff5247e470b0fd.tar.bz2
samba-6d02f0805a001ae4ac19219c7fff5247e470b0fd.zip
Import warning fixes from Samba 3 into libndr, sync more libndr code.
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/ndr_string.c3
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);
}