MCPcopy Create free account
hub / github.com/F-Stack/f-stack / jemalloc_secure_getenv

Function jemalloc_secure_getenv

app/redis-6.2.6/deps/jemalloc/src/jemalloc.c:697–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695 */
696
697static char *
698jemalloc_secure_getenv(const char *name) {
699#ifdef JEMALLOC_HAVE_SECURE_GETENV
700 return secure_getenv(name);
701#else
702# ifdef JEMALLOC_HAVE_ISSETUGID
703 if (issetugid() != 0) {
704 return NULL;
705 }
706# endif
707 return getenv(name);
708#endif
709}
710
711static unsigned
712malloc_ncpus(void) {

Callers 1

malloc_conf_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected