(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
authorrubidium
Sun, 18 Nov 2007 16:41:25 +0000
changeset 7910 7f972c46af7a
parent 7909 19cec50eb148
child 7911 48610042ac18
(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
src/group_gui.cpp
--- a/src/group_gui.cpp	Sun Nov 18 15:06:01 2007 +0000
+++ b/src/group_gui.cpp	Sun Nov 18 16:41:25 2007 +0000
@@ -40,7 +40,7 @@
 	const Group *g;
 	uint n = 0;
 
-	if (!(gl->l.flags & VL_REBUILD)) return;
+	if (!(gl->l.flags & VL_REBUILD) || GetGroupArraySize() == 0) return;
 
 	list = MallocT<const Group*>(GetGroupArraySize());
 	if (list == NULL) {