Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests
Modified Files:
ewl_tree.c
Log Message:
Fix for tree test corruption, NULL out the freed entries in a row and only
free in one place.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_tree.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_tree.c 10 Mar 2006 04:05:42 -0000 1.2
+++ ewl_tree.c 2 May 2006 20:01:22 -0000 1.3
@@ -67,11 +67,10 @@
for (row = 0; row < ROWS; row++)
{
+
for (col = 0; col < COLS; col++)
{
snprintf(buf, 1024, "Row %d Col %d", row, col);
- if (entries[col])
- free(entries[col]);
entries[col] = strdup(buf);
}
@@ -86,6 +85,7 @@
{
if (entries[col])
free(entries[col]);
+ entries[col] = NULL;
}
}
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs