[hooks] Initialize lastrun to 0
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d19639d555
commit
ff23b67c65
|
@ -286,7 +286,7 @@ main(int argc, char **argv)
|
||||||
xcb_generic_event_t *ev;
|
xcb_generic_event_t *ev;
|
||||||
struct sockaddr_un *addr;
|
struct sockaddr_un *addr;
|
||||||
client_t *c;
|
client_t *c;
|
||||||
struct timeval select_timeout, hook_lastrun, now, hook_nextrun;
|
struct timeval select_timeout, hook_lastrun = { 0, 0 }, now, hook_nextrun;
|
||||||
static struct option long_options[] =
|
static struct option long_options[] =
|
||||||
{
|
{
|
||||||
{"help", 0, NULL, 'h'},
|
{"help", 0, NULL, 'h'},
|
||||||
|
|
Loading…
Reference in New Issue