From 0641291ad54ff6fefdaf867ac099998a27126c79 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Wed, 16 Dec 2015 14:01:51 +0100 Subject: [PATCH] curses: Pass in proper NULL pointer Fix sparse warning: out_curses.c:433:25: warning: Using plain integer as NULL pointer Signed-off-by: Thomas Graf --- src/out_curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/out_curses.c b/src/out_curses.c index d5443fc..05b4c45 100644 --- a/src/out_curses.c +++ b/src/out_curses.c @@ -430,7 +430,7 @@ static void draw_statusbar(void) { static const char *help_text = "Press ? for help"; char s[27]; - time_t t = time(0); + time_t t = time(NULL); apply_layout(LAYOUT_STATUSBAR);