OSSP CVS Repository

ossp - Check-in [3332]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3332
Date: 2003-May-12 17:43:32 (local)
2003-May-12 15:43:32 (UTC)
User:ms
Branch:
Comment: Bugfix the analyser and processor.
Tickets:
Inspections:
Files:
ossp-pkg/rc/rc_anal.c      1.11 -> 1.12     1 inserted, 0 deleted
ossp-pkg/rc/rc_proc.c      1.18 -> 1.19     1 inserted, 1 deleted

ossp-pkg/rc/rc_anal.c 1.11 -> 1.12

--- rc_anal.c    2002/08/02 20:09:59     1.11
+++ rc_anal.c    2003/05/12 15:43:32     1.12
@@ -67,6 +67,7 @@
             (*ppInst)->m_szRcs = malloc(sizeof(*((*ppInst)->m_szRcs)));
             *(*ppInst)->m_szRcs = strdup("rc."); /* FIXME: Remove hardcoded */
             strcat(*(*ppInst)->m_szRcs, kszName);
+            (*ppInst)->m_nRcs = 1;            /* We handle just one rc file */
         }
         else { /* Wildcard rcfile indicates we must glob the locs directories */
             try {


ossp-pkg/rc/rc_proc.c 1.18 -> 1.19

--- rc_proc.c    2003/04/03 12:05:14     1.18
+++ rc_proc.c    2003/05/12 15:43:32     1.19
@@ -155,7 +155,7 @@
                 pSec = scriptSection(pTempscript, pRc->m_pAnal->m_pszSecs[i]);
 
                 if (pSec) { /* Only call if the section lookup succeeds */
-                    scriptAppend(ppParts[nIter], sectionGetdata(pSec),
+                    scriptAppend(pRc->m_pScript, sectionGetdata(pSec),
                         sectionGetlen(pSec) - 1);
                     scriptAppend(pRc->m_pScript, "\n", sizeof(char));
                 }

CVSTrac 2.0.1