1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 05:06:38 +02:00

added a check for null pointers

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2803 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
dukepyrolator
2010-03-06 10:33:28 +00:00
parent 023c2188f8
commit dd7d2d4cf0
+3
View File
@@ -425,6 +425,8 @@ int main(int argc, char *argv[])
memos = nc->memos.memos;
for (j = 0; j < nc->memos.memocount; j++, memos++)
{
if (!memos->text)
break;
fs << "MD MI " << memos->number << " " << memos->time << " " << memos->sender;
if (memos->flags & MF_UNREAD)
fs << " UNREAD";
@@ -1000,6 +1002,7 @@ int main(int argc, char *argv[])
/* CONVERTING DONE \o/ HURRAY! */
fs.flush();
fs.close();
return 0;
} /* End of main() */