Changeset 88 for trunk

Show
Ignore:
Timestamp:
11/25/08 16:46:20 (14 years ago)
Author:
andreu
Message:

ticket #18

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/renetcol.c

    r76 r88  
    168168  shmForAgg->secondTable = 1; 
    169169  shmForAgg->readed = 0; 
    170  
    171170  /* get the rules */ 
    172171  myPtrs.rulesListPtr = NULL; 
    173172  myPtrs.rulesListPtr = getRules(myPtrs.rulesListPtr, RULES_FILE); 
    174173  tmp = myPtrs.rulesListPtr; 
    175   for ( ; tmp->next; tmp=tmp->next) { 
    176     if (tmp->type != 2) { 
    177       myPtrs.rulesListPtr = delRule(tmp, myPtrs.rulesListPtr); 
    178     } 
    179   } 
     174 if (tmp!=NULL){ 
     175   for ( ; tmp->next; tmp=tmp->next) { 
     176     if (tmp->type != 2) { 
     177       myPtrs.rulesListPtr = delRule(tmp, myPtrs.rulesListPtr); 
     178     } 
     179   } 
     180 } 
    180181  tmp = NULL; 
    181182#ifdef DEBUG 
    182   printRule(rulesListPtr); 
     183  printRule(myPtrs.rulesListPtr); 
    183184#endif 
    184185