Zeroed all args.
* lib/command.c: (glibtop_call_l): Zeroed all args.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2004-08-22 Benoît Dejean <tazforever@dlfp.org>
|
||||||
|
|
||||||
|
* lib/command.c: (glibtop_call_l): Zeroed all args.
|
||||||
|
|
||||||
2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
|
2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* configure.in: Add «nb» to ALL_LINGUAS.
|
* configure.in: Add «nb» to ALL_LINGUAS.
|
||||||
|
@@ -31,13 +31,11 @@ void *
|
|||||||
glibtop_call_l (glibtop *server, unsigned command, size_t send_size,
|
glibtop_call_l (glibtop *server, unsigned command, size_t send_size,
|
||||||
const void *send_buf, size_t recv_size, void *recv_buf)
|
const void *send_buf, size_t recv_size, void *recv_buf)
|
||||||
{
|
{
|
||||||
glibtop_command cmnd;
|
glibtop_command cmnd = {0};
|
||||||
glibtop_response response;
|
glibtop_response response = {0};
|
||||||
|
|
||||||
glibtop_init_r (&server, 0, 0);
|
glibtop_init_r (&server, 0, 0);
|
||||||
|
|
||||||
memset (&cmnd, 0, sizeof (glibtop_command));
|
|
||||||
|
|
||||||
cmnd.command = command;
|
cmnd.command = command;
|
||||||
|
|
||||||
/* If send_size is less than _GLIBTOP_PARAM_SIZE (normally 16 Bytes), we
|
/* If send_size is less than _GLIBTOP_PARAM_SIZE (normally 16 Bytes), we
|
||||||
|
Reference in New Issue
Block a user