1
0
Fork 0
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:
Tanaka Akira 2000-03-01 10:08:02 +00:00
parent 76d90bd564
commit 137c94144c
16 changed files with 766 additions and 141 deletions

View file

@ -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));