Return to util.c CVS log | Up to [local] / src / usr.bin / patch |
version 1.33, 2009/10/27 23:59:41 | version 1.34, 2010/01/08 13:27:59 | ||
---|---|---|---|
|
|
||
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) |