X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fstubs.c;h=54fa8e00643887dacb8285a6361cd7434107b547;hb=b4c040d30e2677313a892ffe4cde0d53e446da7d;hp=22fd57558402db6bd4c2a0c890980342e50fb592;hpb=40ca9a57829f2e82362e391d7d998bf33c8bd671;p=libguestfs.git diff --git a/daemon/stubs.c b/daemon/stubs.c index 22fd575..54fa8e0 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;