1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 15:00:34 -08:00

src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.

This commit is contained in:
Juanma Barranquero 2011-10-27 02:59:21 +02:00
parent 6e724ca2c2
commit 657d08d30a
7 changed files with 22 additions and 12 deletions

View file

@ -359,7 +359,7 @@ w32_getenv (char *envvar)
char *value;
DWORD dwType;
if (value = getenv (envvar))
if ((value = getenv (envvar)))
/* Found in the environment. strdup it, because values returned
by getenv cannot be free'd. */
return xstrdup (value);
@ -382,7 +382,7 @@ w32_getenv (char *envvar)
{
DWORD size;
if (size = ExpandEnvironmentStrings (value, NULL, 0))
if ((size = ExpandEnvironmentStrings (value, NULL, 0)))
{
char *buffer = (char *) xmalloc (size);
if (ExpandEnvironmentStrings (value, buffer, size))