projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check paths in blerglatest
[blerg.git]
/
tools
/
blerglatest.c
diff --git
a/tools/blerglatest.c
b/tools/blerglatest.c
index
c0279af
..
eaf887e
100644
(file)
--- a/
tools/blerglatest.c
+++ b/
tools/blerglatest.c
@@
-83,6
+83,11
@@
struct things * latest_things(const char *path, const char *file, int minlen) {
int i;
d = opendir(path);
+ if (d == NULL) {
+ fprintf(stderr, "Could not open %s: ", path);
+ perror("");
+ exit(1);
+ }
while (f = readdir(d)) {
if (f->d_name[0] == '.') continue;
if (minlen > 0 && strlen(f->d_name) < minlen) continue;