(do_read_without_guile): Use the "raw_data" passed in
authorNeil Jerram <neil@ossau.uklinux.net>
Wed, 14 Dec 2005 00:15:00 +0000 (00:15 +0000)
committerNeil Jerram <neil@ossau.uklinux.net>
Wed, 14 Dec 2005 00:15:00 +0000 (00:15 +0000)
(rather than an uninitialized pointer on the stack).

libguile/ChangeLog
libguile/scmsigs.c

index 4f364c1..f57b52e 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-14  Neil Jerram  <neil@ossau.uklinux.net>
+
+       * scmsigs.c (do_read_without_guile): Use the "raw_data" passed in
+       (rather than an uninitialized pointer on the stack).
+
 2005-12-07  Marius Vollmer  <mvo@zagadka.de>
 
        Reported by Bruce Korb:
index 59513cf..3e7c3e1 100644 (file)
@@ -130,7 +130,7 @@ typedef struct {
 static void *
 do_read_without_guile (void *raw_data)
 {
-  read_without_guile_data *data = (read_without_guile_data *)data;
+  read_without_guile_data *data = (read_without_guile_data *)raw_data;
   data->res = read (data->fd, data->buf, data->n);
   return NULL;
 }