Commit 0c646c02 authored by Miller Puckette's avatar Miller Puckette
Browse files

minor bugfix

parent 8b58ed30
......@@ -172,7 +172,7 @@ static void openit(const char *dirname, const char *filename)
char dirbuf[MAXPDSTRING], *nameptr;
int fd = open_via_path(dirname, filename, "", dirbuf, &nameptr,
MAXPDSTRING, 0);
if (fd)
if (fd >= 0)
{
close (fd);
glob_evalfile(0, gensym(nameptr), gensym(dirbuf));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment