chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utmp: properly initialize local variables
[elogind.git]
/
src
/
utmp-wtmp.c
diff --git
a/src/utmp-wtmp.c
b/src/utmp-wtmp.c
index 5aafb7b722272b411c051746a2bc834f64e0475f..d7cda82d5a6dfc98669a7d89b9bf33aee0385a09 100644
(file)
--- 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;