summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-08-22 19:32:56 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-08-22 19:32:56 +0000
commite81e7db9390b7114b8c50074cd61d8882cd07d2e (patch)
treef4b3435664492721ec0a4822fc462ca385a4ae82 /lib
parent91adde3f3dcbb38ccd2caae0033b305a11dad41a (diff)
downloadlibgtop-e81e7db9390b7114b8c50074cd61d8882cd07d2e.tar.gz
Zeroed all args.
* lib/command.c: (glibtop_call_l): Zeroed all args.
Diffstat (limited to 'lib')
-rw-r--r--lib/command.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/command.c b/lib/command.c
index 431d59fa..3583d60f 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -31,13 +31,11 @@ void *
glibtop_call_l (glibtop *server, unsigned command, size_t send_size,
const void *send_buf, size_t recv_size, void *recv_buf)
{
- glibtop_command cmnd;
- glibtop_response response;
+ glibtop_command cmnd = {0};
+ glibtop_response response = {0};
glibtop_init_r (&server, 0, 0);
- memset (&cmnd, 0, sizeof (glibtop_command));
-
cmnd.command = command;
/* If send_size is less than _GLIBTOP_PARAM_SIZE (normally 16 Bytes), we