********>Bugfix 4:
Author: Junmei Wang (bug reported by Eric Pettersen)
Date: 05/9/2006
Programs: Antechamber
Description: The ring analysis routine can try to malloc 0 bytes, which can
cause problems on some systems.
Fix: apply the following patch to amber9/src/antechamber/ring.c
------------------------------------------------------------------------------
diff -c -r9.0 ring.c
*** ring.c 3 Apr 2006 23:34:26 -0000 9.0
--- ring.c 9 May 2006 17:20:25 -0000
***************
*** 66,71 ****
--- 66,72 ----
int tmpint;
int index;
+ if( ringnum == 0 ) return;
ringbak = (RING *) malloc(sizeof(RING) * ringnum );
if (ringbak == NULL) {
fprintf(stderr, "memory allocation error for *ringbak\n");
------------------------------------------------------------------------------
Temporary workarounds: none