aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/ubuntu_14/secure_getenv.cpp
blob: 947fc3eb5a9311e9a9cc19621b89863b1fd118cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h> 
 
#include "glibc.h" 
 
extern "C" { 
    char *secure_getenv(const char *name) noexcept { 
            if (NUbuntuCompat::GetGlibc().IsSecure()) { 
                return nullptr; 
            } 
            return getenv(name); 
    } 
}