git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b4dfd9
)
py_xattr: Fix a "ignoring return value" warning
author
Volker Lendecke
<vl@samba.org>
Wed, 13 Jan 2016 10:15:36 +0000
(11:15 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 23 Feb 2016 21:03:16 +0000
(22:03 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source4/librpc/ndr/py_xattr.c
patch
|
blob
|
history
diff --git
a/source4/librpc/ndr/py_xattr.c
b/source4/librpc/ndr/py_xattr.c
index fcf2e66977ef217cddcbc574020a6c05ff204d5a..4ebf1358c556b75580d949ac7f580afa3dd57bf7 100644
(file)
--- a/
source4/librpc/ndr/py_xattr.c
+++ b/
source4/librpc/ndr/py_xattr.c
@@
-43,12
+43,16
@@
static void ntacl_print_debug_helper(struct ndr_print *ndr, const char *format,
{
va_list ap;
char *s = NULL;
- int i;
+ int i
, ret
;
va_start(ap, format);
- vasprintf(&s, format, ap);
+
ret =
vasprintf(&s, format, ap);
va_end(ap);
+ if (ret == -1) {
+ return;
+ }
+
for (i=0;i<ndr->depth;i++) {
printf(" ");
}