OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_anal.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_anal.c 1.6 -> 1.7

--- rc_anal.c    2002/06/27 15:35:58     1.6
+++ rc_anal.c    2002/06/28 14:20:23     1.7
@@ -55,6 +55,8 @@
 ************************************************/
 rc_return_t analRcs(rc_anal_t **ppInst, const char *kszName)
 {
+    assert(!(*ppInst)->m_szRcs); /* Rcs should be NULL until we set them */
+
     if (!kszName) {
         (*ppInst)->m_szRcs = NULL;
 /*        RC_THROW(RC_WRN_NUL);*/
@@ -64,7 +66,6 @@
         if (strcmp(kszName, RC_GLOB_WILD)) {
             *(*ppInst)->m_szRcs = strdup("rc.");
             strcat(*(*ppInst)->m_szRcs, kszName);
-            *((*ppInst)->m_szRcs + sizeof(char **)) = NULL; /* Terminate list */
         }
         else /* Wildcard rcfile indicates we must glob the locs directories */
             analGloblocs(ppInst);
@@ -241,3 +242,4 @@
 
     return(RC_THROW(RC_OK));
 }
+

CVSTrac 2.0.1