summaryrefslogtreecommitdiff
path: root/main/eeplot.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/eeplot.c')
-rw-r--r--main/eeplot.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/main/eeplot.c b/main/eeplot.c
index e39394c..86bc4e7 100644
--- a/main/eeplot.c
+++ b/main/eeplot.c
@@ -222,16 +222,9 @@ int main(int argc, char **argv)
if (file_names.pro)
file_close(&pro_file);
- if (fn->pl) {
- struct file file;
-
- if (!file_open(&file, fn->pl, &sch_file))
- return 1;
- pl = pl_parse(&file);
- file_close(&file);
- if (!pl)
- return 1;
- }
+ pl = pl_parse_search(fn->pl, &sch_file);
+ if (!pl)
+ return 1;
if (fn != &file_names) {
free_file_names(fn);