1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

49612: avoid startup error with clashing non-local module parameter name

This commit is contained in:
Oliver Kiddle 2021-11-30 18:36:57 +01:00
parent b3519a9603
commit ba225155e4
2 changed files with 4 additions and 1 deletions

View file

@ -1039,7 +1039,7 @@ checkaddparam(const char *nam, int opt_i)
* non-autoloadable parameter already there. This
* is consistent with the way add_auto* functions work.
*/
if (!opt_i || !pm->level) {
if (!opt_i || pm->level) {
zwarn("Can't add module parameter `%s': %s",
nam, pm->level ?
"local parameter exists" :