Final updates after valgrind tests

This commit is contained in:
Michiel Broek
2003-12-08 18:01:25 +00:00
parent 14232958a4
commit 49328fa66c
13 changed files with 54 additions and 22 deletions

View File

@@ -701,7 +701,7 @@ int Fs_Edit()
clear();
fflush(stdout);
if (ch == 'S' && Changed) {
Syslog('+', "FSEDIT: Message saved");
Syslog('+', "FSEDIT: Message will be saved");
return TRUE;
} else {
Syslog('+', "FSEDIT: Message aborted");

View File

@@ -773,11 +773,15 @@ int Save_Msg(int IsReply, faddr *Dest)
char *temp;
FILE *fp;
if ((Line < 2) || (Dest == NULL))
Syslog('b', "Entering Save_Msg() Line=%d, Dest=%s", Line, (Dest == NULL)?"NULL":"valid");
if (Line < 2)
return TRUE;
if (!Open_Msgbase(msgs.Base, 'w'))
if (!Open_Msgbase(msgs.Base, 'w')) {
WriteError("Failed to open msgbase \"%s\"", msgs.Base);
return FALSE;
}
Msg.Written = Msg.Arrived = time(NULL) - (gmt_offset((time_t)0) * 60);
Msg.Local = TRUE;