summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-01-13 11:15:36 +0100
committerMichael Adam <obnox@samba.org>2016-02-23 22:03:16 +0100
commit8fc86f41e4072d5717f0d7a000cdb7461c8effd9 (patch)
tree3ead643413bc5bfb22b882b93c08804b7d91843d /source4/librpc/ndr
parent7b4dfd939f417c7d8c4c2c1e8c77f4af9bcd28d7 (diff)
downloadsamba-8fc86f41e4072d5717f0d7a000cdb7461c8effd9.tar.gz
py_xattr: Fix a "ignoring return value" warning
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/py_xattr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/librpc/ndr/py_xattr.c b/source4/librpc/ndr/py_xattr.c
index fcf2e66977e..4ebf1358c55 100644
--- 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(" ");
}