[quake3-commits] r1966 - trunk/code/tools/asm
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon May 9 17:47:41 EDT 2011
Author: thilo
Date: 2011-05-09 17:47:41 -0400 (Mon, 09 May 2011)
New Revision: 1966
Modified:
trunk/code/tools/asm/q3asm.c
Log:
Fix nasty crash bug
Modified: trunk/code/tools/asm/q3asm.c
===================================================================
--- trunk/code/tools/asm/q3asm.c 2011-05-09 15:40:30 UTC (rev 1965)
+++ trunk/code/tools/asm/q3asm.c 2011-05-09 21:47:41 UTC (rev 1966)
@@ -386,8 +386,12 @@
symbol_t *s;
symbol_t **symlist;
+ if(!symbols)
+ return;
+
//crumb("sort_symbols: Constructing symlist array\n");
for (elems = 0, s = symbols; s; s = s->next, elems++) /* nop */ ;
+
symlist = malloc(elems * sizeof(symbol_t*));
for (i = 0, s = symbols; s; s = s->next, i++)
{
More information about the quake3-commits
mailing list