Skip to content

Commit

Permalink
FEAT: allow path value protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Apr 24, 2024
1 parent bf2aac7 commit e156405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/n-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ enum {

if (D_REF(6)) SET_FLAG(flags, PROT_LOCK);

if (IS_WORD(val) || IS_PATH(val)) {
if (IS_WORD(val) || (ANY_PATH(val) && !D_REF(4))) {
Protect_Word_Value(val, flags); // will unmark if deep
return R_ARG1;
}
Expand Down

0 comments on commit e156405

Please sign in to comment.