Added patches to fix segfaults

This commit is contained in:
pnenzi 2001-11-22 20:43:36 +00:00
parent 29f5d62f0a
commit 9f2d0d2324
1 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ void
ivars(void)
{
char *temp;
char *temp=NULL;
env_overr(&Spice_Exec_Dir, "SPICE_EXEC_DIR");
env_overr(&Spice_Lib_Dir, "SPICE_LIB_DIR");
@ -81,7 +81,8 @@ ivars(void)
env_overr(&Def_Editor, "SPICE_EDITOR");
env_overr(&temp, "SPICE_ASCIIRAWFILE");
AsciiRawFile = atoi(temp);
if(temp)
AsciiRawFile = atoi(temp);
}