diff options
Diffstat (limited to 'daemon/stubs.c')
-rw-r--r-- | daemon/stubs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/stubs.c b/daemon/stubs.c index 22fd5755..54fa8e00 100644 --- a/daemon/stubs.c +++ b/daemon/stubs.c @@ -32,6 +32,8 @@ static void mount_stub (XDR *xdr_in) const char *device; const char *mountpoint; + memset (&args, 0, sizeof args); + if (!xdr_guestfs_mount_args (xdr_in, &args)) { reply_with_error ("mount: daemon failed to decode procedure arguments"); return; @@ -65,6 +67,8 @@ static void touch_stub (XDR *xdr_in) struct guestfs_touch_args args; const char *path; + memset (&args, 0, sizeof args); + if (!xdr_guestfs_touch_args (xdr_in, &args)) { reply_with_error ("touch: daemon failed to decode procedure arguments"); return; |