[Commit] nickle ChangeLog,1.84,1.85 array.c,1.25,1.26

Keith Packard commit at keithp.com
Fri Sep 17 22:04:20 PDT 2004


Committed by: keithp

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv24124

Modified Files:
	ChangeLog array.c 
Log Message:
2004-09-17  Keith Packard  <keithp at keithp.com>

	* array.c: (ArrayResize):
	Resizing arrays to zero elements would cause segfault when
	adding to the array


Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/nickle/ChangeLog,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- ChangeLog	17 Sep 2004 01:16:05 -0000	1.84
+++ ChangeLog	18 Sep 2004 05:04:17 -0000	1.85
@@ -1,3 +1,9 @@
+2004-09-17  Keith Packard  <keithp at keithp.com>
+
+	* array.c: (ArrayResize):
+	Resizing arrays to zero elements would cause segfault when
+	adding to the array
+
 2004-09-16  Keith Packard  <keithp at keithp.com>
 
 	* examples/google-puzzle.5c:

Index: array.c
===================================================================
RCS file: /local/src/CVS/nickle/array.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- array.c	16 Apr 2004 06:06:01 -0000	1.25
+++ array.c	18 Sep 2004 05:04:17 -0000	1.26
@@ -360,6 +360,7 @@
 	    /* empty */
 	    ents = 0;
 	    nstride = 0;
+	    odim = 0;
 	    size = 0;
 	    nchunk = 0;
 	    for (d = 0; d < a->ndim; d++)




More information about the Commit mailing list