Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > f703f6cc8228e4e780f34b02d5eed091 > files > 6

insight-6.8.1-3.fc14.src.rpm

diff -Naur insight-6.8.orig/gdb/eval.c insight-6.8.new/gdb/eval.c
--- insight-6.8.orig/gdb/eval.c	2008-02-04 01:23:04.000000000 +0100
+++ insight-6.8.new/gdb/eval.c	2009-02-18 15:24:53.000000000 +0100
@@ -1647,6 +1647,9 @@
 	struct type *tmp_type;
 	int offset_item;	/* The array offset where the item lives */
 
+	/* Be sure it is initialized. */
+	memset((char *) subscript_array, 0, sizeof subscript_array);
+
 	if (nargs > MAX_FORTRAN_DIMS)
 	  error (_("Too many subscripts for F77 (%d Max)"), MAX_FORTRAN_DIMS);