git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some warnings
[vlendec/samba-autobuild/.git]
/
source3
/
librpc
/
ndr
/
ndr_basic.c
diff --git
a/source3/librpc/ndr/ndr_basic.c
b/source3/librpc/ndr/ndr_basic.c
index 54397c9469b9442f08be3d33e2969ab29cd51df3..f342c6e36f970ec8cec928c6ead4ac094c03d13a 100644
(file)
--- a/
source3/librpc/ndr/ndr_basic.c
+++ b/
source3/librpc/ndr/ndr_basic.c
@@
-773,8
+773,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;
- asprintf(&idx, "[%d]", i);
- if (idx) {
+ if (asprintf(&idx, "[%d]", i) != -1) {
ndr_print_uint8(ndr, idx, data[i]);
free(idx);
}