summaryrefslogtreecommitdiffstats
path: root/librpc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-12-31 18:34:52 -0800
committerJeremy Allison <jra@samba.org>2008-12-31 18:34:52 -0800
commit9c92cb763653644e129b0777b3f8fc2f333bb7c6 (patch)
tree18d30eac5bd6e1f63eb70e8754c96a719c54b986 /librpc
parent07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00 (diff)
downloadsamba-9c92cb763653644e129b0777b3f8fc2f333bb7c6.tar.gz
samba-9c92cb763653644e129b0777b3f8fc2f333bb7c6.tar.xz
samba-9c92cb763653644e129b0777b3f8fc2f333bb7c6.zip
Fix typo found by Volker. Thanks for the review.
Jeremy.
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/ndr_basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_basic.c b/librpc/ndr/ndr_basic.c
index 921af15dae..97f75051b7 100644
--- a/librpc/ndr/ndr_basic.c
+++ b/librpc/ndr/ndr_basic.c
@@ -757,7 +757,7 @@ _PUBLIC_ void ndr_print_array_uint8(struct ndr_print *ndr, const char *name,
ndr->depth++;
for (i=0;i<count;i++) {
char *idx=NULL;
- if (asprintf(&idx, "[%d]", i) == -1) {
+ if (asprintf(&idx, "[%d]", i) != -1) {
ndr_print_uint8(ndr, idx, data[i]);
free(idx);
}