make style

This commit is contained in:
Romuald Conty 2013-01-31 16:12:14 +01:00
parent acdde1088c
commit 519dd8f8e2
4 changed files with 7 additions and 9 deletions

View file

@ -29,10 +29,8 @@
int setenv(const char *name, const char *value, int overwrite) int setenv(const char *name, const char *value, int overwrite)
{ {
int exists = GetEnvironmentVariableA(name, NULL, 0); int exists = GetEnvironmentVariableA(name, NULL, 0);
if ((exists && overwrite) || (!exists)) if ((exists && overwrite) || (!exists)) {
{ if (!SetEnvironmentVariableA(name, value)) {
if (!SetEnvironmentVariableA(name, value))
{
// Set errno here correctly // Set errno here correctly
return -1; return -1;
} }