summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utmp-wtmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utmp-wtmp.c b/src/utmp-wtmp.c
index 5aafb7b722..d7cda82d5a 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;