diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-11-07 09:21:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-11-07 09:21:35 +0000 |
commit | cbd1a77ec24e397d05f20c6de106625676343c9d (patch) | |
tree | b92440210b287a25e34293646d26fe124581c767 /lib/getenv.c | |
parent | 33f7ac06c3aaecf995360323d6f425e769e6fa79 (diff) | |
download | curl-cbd1a77ec24e397d05f20c6de106625676343c9d.tar.gz |
if () => if()
while () => while()
and some other minor re-indentings
Diffstat (limited to 'lib/getenv.c')
-rw-r--r-- | lib/getenv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getenv.c b/lib/getenv.c index ca88234fa..6bd0e07ba 100644 --- a/lib/getenv.c +++ b/lib/getenv.c @@ -46,13 +46,13 @@ char *GetEnv(const char *variable) char env[MAX_PATH]; /* MAX_PATH is from windef.h */ char *temp = getenv(variable); env[0] = '\0'; - if (temp != NULL) + if(temp != NULL) ExpandEnvironmentStrings(temp, env, sizeof(env)); return (env[0] != '\0')?strdup(env):NULL; #else char *env = getenv(variable); #ifdef VMS - if (env && strcmp("HOME",variable) == 0) + if(env && strcmp("HOME",variable) == 0) env = decc$translate_vms(env); #endif return (env && env[0])?strdup(env):NULL; |