summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2015-12-16 14:01:51 +0100
committerThomas Graf <tgraf@suug.ch>2015-12-16 14:01:51 +0100
commit0641291ad54ff6fefdaf867ac099998a27126c79 (patch)
tree3b71ebad6c6896ae9142a8b0d045bde4935f91ee
parentf666ffd0b7a8cd247da19446fd682eb7c2f7bd46 (diff)
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 <tgraf@suug.ch>
-rw-r--r--src/out_curses.c2
1 files changed, 1 insertions, 1 deletions
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);