MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / jemalloc_secure_getenv

Function jemalloc_secure_getenv

deps/jemalloc/src/jemalloc.c:711–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709 */
710
711static char *
712jemalloc_secure_getenv(const char *name) {
713#ifdef JEMALLOC_HAVE_SECURE_GETENV
714 return secure_getenv(name);
715#else
716# ifdef JEMALLOC_HAVE_ISSETUGID
717 if (issetugid() != 0) {
718 return NULL;
719 }
720# endif
721 return getenv(name);
722#endif
723}
724
725static unsigned
726malloc_ncpus(void) {

Callers 1

obtain_malloc_confFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected