Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
env
/
clearenv.c
blob: da187752b510a9594ba839dcef3955b01ef2cc67 [
file
] [
log
] [
blame
]
#define
_GNU_SOURCE
#include
<stdlib.h>
#include
"libc.h"
static
void
dummy
(
char
*
old
,
char
*
new
)
{}
weak_alias
(
dummy
,
__env_rm_add
);
int
clearenv
()
{
char
**
e
=
__environ
;
__environ
=
0
;
if
(
e
)
while
(*
e
)
__env_rm_add
(*
e
++,
0
);
return
0
;
}