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:
parent
b3519a9603
commit
ba225155e4
2 changed files with 4 additions and 1 deletions
|
|
@ -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" :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue