mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
23232: minor tweaks to zmodload
This commit is contained in:
parent
949152124b
commit
11bbce3a66
3 changed files with 16 additions and 10 deletions
12
Src/module.c
12
Src/module.c
|
|
@ -439,11 +439,8 @@ do_load_module(char const *name, int silent)
|
|||
void *ret;
|
||||
|
||||
ret = try_load_module(name);
|
||||
if (!ret && !silent) {
|
||||
int waserr = errflag;
|
||||
zerr("failed to load module: %s", name);
|
||||
errflag = waserr;
|
||||
}
|
||||
if (!ret && !silent)
|
||||
zwarn("failed to load module: %s", name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -454,11 +451,8 @@ do_load_module(char const *name, int silent)
|
|||
static void *
|
||||
do_load_module(char const *name, int silent)
|
||||
{
|
||||
int waserr = errflag;
|
||||
|
||||
if (!silent)
|
||||
zerr("failed to load module: %s", name);
|
||||
errflag = waserr;
|
||||
zwarn("failed to load module: %s", name);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue