summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/havegecmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/havegecmd.c b/src/havegecmd.c
index b691c29..5eb9146 100644
--- a/src/havegecmd.c
+++ b/src/havegecmd.c
@@ -191,7 +191,7 @@ int getcmd( /* RETURN: success or error */
const char* opt;
} cmds[] = {
{ "root=", MAGIC_CHROOT, 1, NULL }, /* New root */
- {}
+ {0}
}, *cmd = cmds;
int ret = -1;
@@ -227,7 +227,7 @@ int socket_handler( /* RETURN: closed file descriptor */
char *const argv[], /* IN: arguments for the haveged process */
struct pparams *params) /* IN: input params */
{
- struct ucred cred = {};
+ struct ucred cred = {0};
unsigned char magic[2], *ptr;
char *enqry;
char *optarg = NULL;