Ticket #1140: tt1140-minimalist-fix.patch
| File tt1140-minimalist-fix.patch, 0.6 KB (added by doughera, 3 years ago) |
|---|
-
config/gen/platform/generic/env.c
old new 74 74 void 75 75 Parrot_unsetenv(PARROT_INTERP, STRING *str_name) 76 76 { 77 char * const name = Parrot_str_to_cstring(interp, str_name);78 77 #ifdef PARROT_HAS_UNSETENV 78 char * const name = Parrot_str_to_cstring(interp, str_name); 79 79 unsetenv(name); 80 Parrot_str_free_cstring(name); 80 81 #else 81 Parrot_setenv( name, "");82 Parrot_setenv(interp, str_name, Parrot_str_new(interp, "", 0)); 82 83 #endif 83 Parrot_str_free_cstring(name);84 84 } 85 85 86 86 /*
