chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d55ae9e
)
utmp: properly initialize local variables
author
Lennart Poettering
<lennart@poettering.net>
Fri, 18 Jun 2010 17:18:03 +0000
(19:18 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 18 Jun 2010 17:18:03 +0000
(19:18 +0200)
src/utmp-wtmp.c
patch
|
blob
|
history
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;