diff options
author | Igor Podlesny <user.email@poige.ru> | 2015-03-24 05:49:26 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-04-30 18:48:56 (GMT) |
commit | 95e88de0aab257020dfc33248b86331cbfac28b1 (patch) | |
tree | 57a58b5352e8a712322d9409bec3f0ee50a717fa /src | |
parent | 897503521ddb703a1388899f79112e048c328278 (diff) | |
download | jemalloc-95e88de0aab257020dfc33248b86331cbfac28b1.zip jemalloc-95e88de0aab257020dfc33248b86331cbfac28b1.tar.gz jemalloc-95e88de0aab257020dfc33248b86331cbfac28b1.tar.bz2 |
Concise JEMALLOC_HAVE_ISSETUGID case in secure_getenv().
Diffstat (limited to 'src')
-rw-r--r-- | src/jemalloc.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index 7e9f486..a2d1c5c 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -709,24 +709,16 @@ stats_print_atexit(void) */ #ifndef JEMALLOC_HAVE_SECURE_GETENV -# ifdef JEMALLOC_HAVE_ISSETUGID static char * secure_getenv(const char *name) { - if (issetugid() == 0) - return (getenv(name)); - else +# ifdef JEMALLOC_HAVE_ISSETUGID + if (issetugid() != 0) return (NULL); -} -# else -static char * -secure_getenv(const char *name) -{ - +# endif return (getenv(name)); } -# endif #endif static unsigned |