Skip to content

Commit

Permalink
Revert afe5748. Fixes #442
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 4, 2013
1 parent 7ca1cf6 commit 82a63e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/modcall.c
Expand Up @@ -1895,8 +1895,7 @@ static modcallable *do_compile_modsingle(modcallable *parent,

*modname = name2;

if (!parent ||
(parent->type != MOD_SWITCH)) {
if (!parent) {
cf_log_err(ci, "\"case\" statements may only appear within a \"switch\" section");
return NULL;
}
Expand Down

0 comments on commit 82a63e9

Please sign in to comment.