Fix typo found by Volker. Thanks for the review.
authorJeremy Allison <jra@samba.org>
Thu, 1 Jan 2009 02:34:52 +0000 (18:34 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 1 Jan 2009 02:34:52 +0000 (18:34 -0800)
Jeremy.

librpc/ndr/ndr_basic.c

index 921af15daebacb9468718a3c8c73f8579cfe2258..97f75051b7e713a9c99deb688ae8b355a509a4a2 100644 (file)
@@ -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);
                }