Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small bug in crossfire 0.87.5
- To: crossfire (at) ifi.uio.no
- Subject: Small bug in crossfire 0.87.5
- From: Moonchilde <>
- Date: Tue, 22 Sep 1992 14:03:49 -0400 (EDT)
- Sender: "Joseph L. Traub" <>
Frank, Some unix systems will barf if you pass a null pointer to fclose.
What follows is a fix for that problem when it occurs in login.c.
--------------------------------cut here-----------------------------------
*** login.c.old Tue Sep 22 14:01:29 1992
--- login.c Tue Sep 22 13:50:05 1992
***************
*** 263,269 ****
}
}
}
! close_and_delete(fp);
op->contr->last_value= -1;
draw_stats(op);
return;
--- 263,270 ----
}
}
}
! if(fp)
! close_and_delete(fp);
op->contr->last_value= -1;
draw_stats(op);
return;
-------------------------------------------------------------------------
Practice random kindness and senseless acts of beauty --Anonymous
Argue for your limitations and sure enough they're yours --Richard Bach
Moonchilde/Amythyst/JT Traub ---