summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ircd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 08dcefc..f4aa6f8 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -169,9 +169,7 @@ void
set_time(void)
{
static char to_send[IRCD_BUFSIZE];
- struct timeval newtime;
- newtime.tv_sec = 0;
- newtime.tv_usec = 0;
+ struct timeval newtime = { .tv_sec = 0, .tv_usec = 0 };
if (gettimeofday(&newtime, NULL) == -1)
{