ossp-pkg/rc/rc_anal.c 1.15 -> 1.16
--- rc_anal.c 2003/05/26 16:03:56 1.15
+++ rc_anal.c 2003/05/27 14:51:38 1.16
@@ -247,8 +247,11 @@
/* just copies of the stack parameters passed in. */
int nIter = 0;
- while (pInst->m_szRcs[nIter]) /* Rc file names */
- free(pInst->m_szRcs[nIter++]);
+ assert(pInst); /* Verify sanity */
+
+ if (pInst->m_szRcs && pInst->m_szRcs[nIter])
+ while (pInst->m_szRcs[nIter]) /* Rc file names */
+ free(pInst->m_szRcs[nIter++]);
if (pInst->m_szRcs) /* Rc file name index */
free(pInst->m_szRcs);
if (pInst->m_szTmp) /* Temp file name */
|
|