diff --git a/src/cfgparse.y b/src/cfgparse.y index a33ecaf1..efed14e0 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -160,6 +160,8 @@ void parse_file(const char *f) { %} +%expect 1 + %union { int number; char *string; @@ -404,7 +406,7 @@ workspace: optional_workspace_name: /* empty */ { $$ = NULL; } - | WHITESPACE workspace_name { $$ = $1; } + | WHITESPACE workspace_name { $$ = $2; } ; workspace_name: