Commit 0cea1af7 authored by Jolien Creighton's avatar Jolien Creighton
Browse files

fixed bug where missing files caused segfault

parent ac151502
......@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
fp = stdin;
else
fp = fopen(fname, "r");
if (!output)
if (!fp)
FAILURE("could not open file %s\n", fname);
readdata(&ndim, &dimlen, &data, &channames, &chanunits, fp);
......
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