diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 181357c1c..d4b60f081 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8144,10 +8144,12 @@ calcsize(union node *n) | |||
8144 | } | 8144 | } |
8145 | 8145 | ||
8146 | static char * | 8146 | static char * |
8147 | nodeckstrdup(char *s) | 8147 | nodeckstrdup(const char *s) |
8148 | { | 8148 | { |
8149 | char *rtn = funcstring; | 8149 | char *rtn = funcstring; |
8150 | 8150 | ||
8151 | if (!s) | ||
8152 | return NULL; | ||
8151 | strcpy(funcstring, s); | 8153 | strcpy(funcstring, s); |
8152 | funcstring += strlen(s) + 1; | 8154 | funcstring += strlen(s) + 1; |
8153 | return rtn; | 8155 | return rtn; |