aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src
diff options
context:
space:
mode:
Diffstat (limited to 'desiredata/src')
-rw-r--r--desiredata/src/desire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desiredata/src/desire.c b/desiredata/src/desire.c
index cc04ad5e..345527c6 100644
--- a/desiredata/src/desire.c
+++ b/desiredata/src/desire.c
@@ -7025,7 +7025,7 @@ static void openit(const char *dirname, const char *filename) {
char *dirbuf;
char *nameptr;
int fd = open_via_path2(dirname,filename,"",&dirbuf,&nameptr,0);
- if (!fd) {error("%s: can't open", filename); return;}
+ if (fd<0) {error("%s: can't open", filename); return;}
close(fd);
glob_evalfile(0, gensym(nameptr), gensym(dirbuf));
free(dirbuf);