[BACK]Return to suff.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/suff.c between version 1.10 and 1.11

version 1.10, 1998/07/03 18:51:14 version 1.11, 1998/12/05 00:06:29
Line 1730 
Line 1730 
     for (i = (sizeof(copy)/sizeof(copy[0]))-1; i >= 0; i--) {      for (i = (sizeof(copy)/sizeof(copy[0]))-1; i >= 0; i--) {
         char *p1;          char *p1;
         Var_Set(copy[i], Var_Value(copy[i], mem, &p1), gn);          Var_Set(copy[i], Var_Value(copy[i], mem, &p1), gn);
         if (p1)          efree(p1);
             free(p1);  
   
     }      }
   
Line 2065 
Line 2064 
             gn->suffix = (targ == NULL) ? NULL : targ->suff;              gn->suffix = (targ == NULL) ? NULL : targ->suff;
             if (gn->suffix)              if (gn->suffix)
                 gn->suffix->refCount++;                  gn->suffix->refCount++;
             if (gn->path != NULL)              efree(gn->path);
                 free(gn->path);  
             gn->path = estrdup(gn->name);              gn->path = estrdup(gn->name);
         }          }
   
Line 2166 
Line 2164 
     /*      /*
      * So Dir_MTime doesn't go questing for it...       * So Dir_MTime doesn't go questing for it...
      */       */
     if (gn->path)      efree(gn->path);
         free(gn->path);  
     gn->path = estrdup(gn->name);      gn->path = estrdup(gn->name);
   
     /*      /*

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11