summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-03-16 16:31:48 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-03-16 16:31:48 +0000
commit0bdc0832be3b459f721205372c7ba1ea7f617f73 (patch)
treef9f26e74699dff3aa1dd1256129f822988034b87
parent2501d27f30a353e6acf6fa8a92bf91ec916610a2 (diff)
* init.c (reboot_system): Initialize noise_len.
-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,