summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/ChangeLog4
-rw-r--r--init/init.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/init/ChangeLog b/init/ChangeLog
index b8c1eda7..5d1b03a1 100644
--- a/init/ChangeLog
+++ b/init/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * init.c (reboot_system): Initialize noise_len.
+
2005-02-24 Ben Asselstine <benasselstine@gmail.com>
* init.c (main): Only pass ARGP_NO_ERRS to argp_parse when invoked
diff --git a/init/init.c b/init/init.c
index 4fed8a3f..57c5a66e 100644
--- a/init/init.c
+++ b/init/init.c
@@ -253,7 +253,7 @@ reboot_system (int flags)
struct procinfo *pi = 0;
size_t pisize = 0;
char *noise;
- size_t noise_len;
+ size_t noise_len = 0;
int flags;
err = proc_getprocinfo (procserver, pp[ind], &flags,
(int **)&pi, &pisize,