X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=entry.c;h=c540ae13e858685faa8dbbada5b064074235ae6d;hb=0305b636542c8c137ed7c82fee90db8d3621118c;hp=ae6476496a81b23938569ab0e4c148ba45aba923;hpb=322bcd9a9a2c0081c66414bde64e0d443c9ec922;p=git.git diff --git a/entry.c b/entry.c index ae6476496..c540ae13e 100644 --- a/entry.c +++ b/entry.c @@ -31,7 +31,7 @@ static void remove_subtree(const char *path) struct dirent *de; char pathbuf[PATH_MAX]; char *name; - + if (!dir) die("cannot opendir %s (%s)", path, strerror(errno)); strcpy(pathbuf, path);