diff options
Diffstat (limited to 'lib-src/emacsclient.c')
| -rw-r--r-- | lib-src/emacsclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index ece9dc65c49..76aa21884de 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -359,7 +359,7 @@ w32_getenv (char *envvar) | |||
| 359 | char *value; | 359 | char *value; |
| 360 | DWORD dwType; | 360 | DWORD dwType; |
| 361 | 361 | ||
| 362 | if (value = getenv (envvar)) | 362 | if ((value = getenv (envvar))) |
| 363 | /* Found in the environment. strdup it, because values returned | 363 | /* Found in the environment. strdup it, because values returned |
| 364 | by getenv cannot be free'd. */ | 364 | by getenv cannot be free'd. */ |
| 365 | return xstrdup (value); | 365 | return xstrdup (value); |
| @@ -382,7 +382,7 @@ w32_getenv (char *envvar) | |||
| 382 | { | 382 | { |
| 383 | DWORD size; | 383 | DWORD size; |
| 384 | 384 | ||
| 385 | if (size = ExpandEnvironmentStrings (value, NULL, 0)) | 385 | if ((size = ExpandEnvironmentStrings (value, NULL, 0))) |
| 386 | { | 386 | { |
| 387 | char *buffer = (char *) xmalloc (size); | 387 | char *buffer = (char *) xmalloc (size); |
| 388 | if (ExpandEnvironmentStrings (value, buffer, size)) | 388 | if (ExpandEnvironmentStrings (value, buffer, size)) |