File ncbi-6.1-sequence-point.patch of Package ncbi
diff -aruN ncbi.orig/api/samutil.c ncbi/api/samutil.c
--- ncbi.orig/api/samutil.c 2005-04-26 23:33:52.000000000 +0200
+++ ncbi/api/samutil.c 2012-09-06 21:20:40.828081172 +0200
@@ -1782,7 +1782,7 @@
/*----------------------------------------------------------------------------
* free all memory allocated for the DDE_Stack.
*---------------------------------------------------------------------------*/
- Int4 i, Index;
+ Int4 i, Index, IndexNext;
if(!pStack) return pStack;
/* free each DDE_Info that's been allocated */
@@ -1791,7 +1791,8 @@
/* free a DDE_Info */
ASSERT(pStack->pArray[Index] != NULL);
DDE_Free(pStack->pArray[Index], pStack->pOrig->TotalNumRows);
- Index = ++Index % DDE_STACK_SIZE;
+ IndexNext = Index + 1;
+ Index = IndexNext % DDE_STACK_SIZE;
}
/* free the copy of the original and the one that was being edited */