[mw-devel] MW3 r1325 - trunk/src
welshbyte at sucs.org
welshbyte at sucs.org
Sat Jan 19 16:32:36 GMT 2013
Author: welshbyte
Date: 2013-01-19 16:32:35 +0000 (Sat, 19 Jan 2013)
New Revision: 1325
Modified:
trunk/src/read.c
Log:
Move an AUTOFREE_BUFF declaration to avoid a segfault when there are no folders
Modified: trunk/src/read.c
===================================================================
--- trunk/src/read.c 2013-01-19 16:27:14 UTC (rev 1324)
+++ trunk/src/read.c 2013-01-19 16:32:35 UTC (rev 1325)
@@ -178,7 +178,6 @@
int afile;
struct folder fold;
struct Header head;
- AUTOFREE_BUFFER tmp;
char buff[SUBJECTSIZE+1];
int linecount=0;
int listpoint;
@@ -187,6 +186,7 @@
if (!get_folder_number(&fold,folnum))
return;
+ AUTOFREE_BUFFER tmp;
if (asprintf(&tmp, "%s/%s%s", STATEDIR, fold.name, INDEX_END) < 0)
{
return;
More information about the mw-devel
mailing list