mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-21 05:56:18 +00:00
make style
This commit is contained in:
@@ -29,10 +29,8 @@
|
||||
int setenv(const char *name, const char *value, int overwrite)
|
||||
{
|
||||
int exists = GetEnvironmentVariableA(name, NULL, 0);
|
||||
if ((exists && overwrite) || (!exists))
|
||||
{
|
||||
if (!SetEnvironmentVariableA(name, value))
|
||||
{
|
||||
if ((exists && overwrite) || (!exists)) {
|
||||
if (!SetEnvironmentVariableA(name, value)) {
|
||||
// Set errno here correctly
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user