********> bugfix.52 Author: Bill Ross Date: 10/31/95 Programs: Carnal Severity: Slight Problem: If FILES_OUT section COORD (coordinate output) is defined but not connected to a stream via a corresponding COORD in the OUTPUT section, program attempts to write undefined coords to file and may crash. Cause: Not checking if user completed the COORD definition. Fix: Make the following change to doit.c: ------------------------------------------------------------------------ *** OLD doit.c --- NEW doit.c *************** *** 128,137 closetab(idptr); break; case CRD: ! if (someser) ! writecrd(idptr, 0); ! else { ! writecrd(idptr, 1); closecrd(idptr); } break; --- 128,143 ----- closetab(idptr); break; case CRD: ! if (someser) { ! if (idptr->idunion.crd.set != NULL) ! writecrd(idptr, 0); ! } else { ! if (idptr->idunion.crd.set != NULL) ! writecrd(idptr, 1); ! else ! printf(" ** Note: COORD %s %s", ! idptr->id_name, ! "not defined in OUTPUT\n"); closecrd(idptr); } break; ------------------------------------------------------------------------ Temporary workarounds: Complete all COORD definitions. --