Skip to content
Snippets Groups Projects
Commit 0cea1af7 authored by Jolien Creighton's avatar Jolien Creighton
Browse files

fixed bug where missing files caused segfault

parent ac151502
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment