summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2008-02-27 16:07:21 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2008-02-27 16:07:21 +0000
commit1247a919a0503750f124a67be925b45f408dfc61 (patch)
tree0ef53023a43aee9ad1dc26c5fed998aed16b08f3 /bin
parentf5a9e2f62deaf0e55a82aade816e3bf32c8ee646 (diff)
Unbreak parser by initializing topfile correctly.
I got fooled by patch(1). Sorry.
Diffstat (limited to 'bin')
-rw-r--r--bin/chio/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/chio/parse.y b/bin/chio/parse.y
index 7b14abb5ad1..0c5a32c9978 100644
--- a/bin/chio/parse.y
+++ b/bin/chio/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.12 2008/02/26 10:09:58 mpf Exp $ */
+/* $OpenBSD: parse.y,v 1.13 2008/02/27 16:07:20 mpf Exp $ */
/*
* Copyright (c) 2006 Bob Beck <beck@openbsd.org>
@@ -429,6 +429,7 @@ parse_tapedev(const char *filename, const char *changer, int drive)
warnx("cannot open the main config file!");
goto guess;
}
+ topfile = file;
yyparse();
errors = file->errors;
@@ -444,7 +445,6 @@ parse_tapedev(const char *filename, const char *changer, int drive)
tapedev = NULL;
}
}
- topfile = file;
guess:
/* if no device found, do the default of /dev/rstX */