From 629c210d3f080854d2d90386f9da1423e53e114e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Jun 2010 19:18:03 +0200 Subject: [PATCH] utmp: properly initialize local variables --- src/utmp-wtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utmp-wtmp.c b/src/utmp-wtmp.c index 5aafb7b72..d7cda82d5 100644 --- a/src/utmp-wtmp.c +++ b/src/utmp-wtmp.c @@ -291,7 +291,7 @@ finish: int utmp_wall(const char *message) { struct utmpx *u; char date[26]; - char *text, *hn, *un, *tty; + char *text = NULL, *hn = NULL, *un = NULL, *tty = NULL; int r; time_t t; -- 2.30.2