[mw-devel] MW3 r1192 - trunk/src

psycodom at sucs.org psycodom at sucs.org
Fri Oct 8 12:30:05 BST 2010


Author: psycodom
Date: 2010-10-08 12:30:05 +0100 (Fri, 08 Oct 2010)
New Revision: 1192

Modified:
   trunk/src/rooms.c
Log:
Fixes a segv from the AUTOFREE_BUFFER when room # is invalid caused by return() happening before buff has been initialsed to anything.



Modified: trunk/src/rooms.c
===================================================================
--- trunk/src/rooms.c	2010-10-08 10:20:25 UTC (rev 1191)
+++ trunk/src/rooms.c	2010-10-08 11:30:05 UTC (rev 1192)
@@ -92,7 +92,7 @@
 	struct room tmp;
 	int i;
 	unsigned short oldroom = user->room;
-	AUTOFREE_BUFFER buff;
+	AUTOFREE_BUFFER buff=NULL;
 
 	if (cm_flags(user->chatmode,CM_FROZEN,CM_MODE_ANY))
 	{




More information about the mw-devel mailing list