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

Diff for /src/usr.bin/patch/util.c between version 1.33 and 1.34

version 1.33, 2009/10/27 23:59:41 version 1.34, 2010/01/08 13:27:59
Line 310 
Line 310 
   
         if (striplast) {          if (striplast) {
                 char    *s = strrchr(tmpbuf, '/');                  char    *s = strrchr(tmpbuf, '/');
                 if (s == NULL)                  if (s == NULL) {
                           free(tmpbuf);
                         return; /* nothing to be done */                          return; /* nothing to be done */
                   }
                 *s = '\0';                  *s = '\0';
         }          }
         if (mkpath(tmpbuf) != 0)          if (mkpath(tmpbuf) != 0)

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34