mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
40524: do not free a null array
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
* 40539: Fabian Klotzl: Completion/Unix/Command/_gcc: typo in MIPS
|
||||
branch of argument selection
|
||||
|
||||
* 40524: Src/Modules/example.c: do not free a null array
|
||||
|
||||
2017-02-13 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 40537: Doc/Zsh/builtins.yo: document the foregoing.
|
||||
|
||||
@@ -69,7 +69,8 @@ bin_example(char *nam, char **args, Options ops, UNUSED(int func))
|
||||
intparam = i;
|
||||
zsfree(strparam);
|
||||
strparam = ztrdup(*oargs ? *oargs : "");
|
||||
freearray(arrparam);
|
||||
if (arrparam)
|
||||
freearray(arrparam);
|
||||
arrparam = zarrdup(oargs);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user