]> code.delx.au - gnu-emacs/commitdiff
Avoid compiler warnings in decode_env_path.
authorHans Wennborg <hwennborg@google.com>
Thu, 29 Jan 2015 19:31:14 +0000 (21:31 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 29 Jan 2015 19:31:14 +0000 (21:31 +0200)
 src/emacs.c (decode_env_path): Add parentheses around ternary
 operator to increase readability and pacify compiler warnings.

src/ChangeLog
src/emacs.c

index 08779405acbec8e662ba7e1f8233e48715d1eb53..949ea741e1d23f37b418e5636d50f845a5b0bc11 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-29  Hans Wennborg  <hwennborg@google.com>  (tiny change)
+
+       * emacs.c (decode_env_path): Add parentheses around ternary
+       operator to increase readability and pacify compiler warnings.
+
 2015-01-29  Eli Zaretskii  <eliz@gnu.org>
 
        * w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not
index 0b7adbd0967aa2fcf88b8658de2c6db36c888295..9b78a70428e866405fc61ece4ad4f8252e85ad97 100644 (file)
@@ -2300,7 +2300,7 @@ decode_env_path (const char *evarname, const char *defalt, bool empty)
       p = strchr (path, SEPCHAR);
       if (!p)
        p = path + strlen (path);
-      element = (p - path ? make_unibyte_string (path, p - path)
+      element = ((p - path) ? make_unibyte_string (path, p - path)
                 : empty_element);
       if (! NILP (element))
         {