Searched refs:newenvptr (Results 1 – 1 of 1) sorted by relevance
154 char **envptr, **newenvptr, **newenv; in DuplicateEnvironment() local159 newenvptr = newenv = malloc(count * sizeof(char*)); in DuplicateEnvironment()163 for (envptr = original_environment; count > 1; newenvptr++, count--) in DuplicateEnvironment()166 *newenvptr = (char*)_wcsdup((wchar_t*)*envptr++); in DuplicateEnvironment()168 *newenvptr = _strdup(*envptr++); in DuplicateEnvironment()169 if (*newenvptr == NULL) in DuplicateEnvironment()171 for (newenvptr--; newenvptr >= newenv; newenvptr--) in DuplicateEnvironment()172 free(*newenvptr); in DuplicateEnvironment()177 *newenvptr = NULL; in DuplicateEnvironment()