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:
@@ -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() */
|
||||
|
||||
Reference in New Issue
Block a user