summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-18 19:18:03 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-18 19:18:03 +0200
commit629c210d3f080854d2d90386f9da1423e53e114e (patch)
treec77d3416ecfa98adebdc5b55ec35ec785b3ee080 /src
parentd55ae9e6d7a20bb79f60a154bfcf4348dfb06852 (diff)
utmp: properly initialize local variables
Diffstat (limited to 'src')
-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;