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

Diff for /src/usr.bin/cvs/cvs.c between version 1.140 and 1.141

version 1.140, 2008/01/10 10:05:40 version 1.141, 2008/01/28 21:32:00
Line 497 
Line 497 
 int  int
 cvs_var_set(const char *var, const char *val)  cvs_var_set(const char *var, const char *val)
 {  {
         char *valcp;  
         const char *cp;          const char *cp;
         struct cvs_var *vp;          struct cvs_var *vp;
   
Line 519 
Line 518 
                 if (strcmp(vp->cv_name, var) == 0)                  if (strcmp(vp->cv_name, var) == 0)
                         break;                          break;
   
         valcp = xstrdup(val);  
         if (vp == NULL) {          if (vp == NULL) {
                 vp = xcalloc(1, sizeof(*vp));                  vp = xcalloc(1, sizeof(*vp));
   
Line 529 
Line 527 
         } else  /* free the previous value */          } else  /* free the previous value */
                 xfree(vp->cv_val);                  xfree(vp->cv_val);
   
         vp->cv_val = valcp;          vp->cv_val = xstrdup(val);
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141