Avoid compiler warnings in decode_env_path.
src/emacs.c (decode_env_path): Add parentheses around ternary operator to increase readability and pacify compiler warnings.
This commit is contained in:
parent
b28c97942e
commit
868df45153
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue