Skip to content

Commit

Permalink
Bug fix - procedures with empty names should not be exported
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Aug 29, 2018
1 parent e262339 commit 9290f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/b6b_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static enum b6b_res b6b_proc_proc_proc(struct b6b_interp *interp,
return B6B_ERR;
}

if (b6b_unlikely(!b6b_global(interp, n, o))) {
if (n->slen && b6b_unlikely(!b6b_global(interp, n, o))) {
b6b_destroy(o);
free(priv);
return B6B_ERR;
Expand Down

0 comments on commit 9290f2c

Please sign in to comment.