mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-27 02:50:57 +01:00
zsh-workers/9947
This commit is contained in:
parent
76d90bd564
commit
137c94144c
16 changed files with 766 additions and 141 deletions
|
|
@ -1704,7 +1704,7 @@ spacesplit(char *s, int allownull, int heap)
|
|||
{
|
||||
char *t, **ret, **ptr;
|
||||
int l = sizeof(*ret) * (wordcount(s, NULL, -!allownull) + 1);
|
||||
char *(*dup)(char *) = (heap ? dupstring : ztrdup);
|
||||
char *(*dup)(const char *) = (heap ? dupstring : ztrdup);
|
||||
|
||||
ptr = ret = (heap ? (char **) hcalloc(l) : (char **) zcalloc(l));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue