utmp: properly initialize local variables

This commit is contained in:
Lennart Poettering 2010-06-18 19:18:03 +02:00
parent d55ae9e6d7
commit 629c210d3f

View File

@ -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;