summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 84e89ad2..7c2954ec 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -13,11 +13,12 @@ static struct CopyTmp *copytmp;
void
a_copyitem(char *fpath, char *title, char *owner, int mode)
{
- if(copytmp == NULL)
- copytmp = (struct CopyTmp*)malloc(sizeof(struct CopyTmp));
if(copytmp == NULL) {
- if(mode) vmsg("«þ¨©¥¢±Ñ");
- return;
+ copytmp = (struct CopyTmp*)malloc(sizeof(struct CopyTmp));
+ if(copytmp == NULL) {
+ if(mode) vmsg("«þ¨©¥¢±Ñ");
+ return;
+ }
}
memset(copytmp, 0, sizeof(struct CopyTmp));