clients: fix errno handling
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Jan 2017 22:21:45 +0000 (08:21 +1000)
committerDaniel Stone <daniels@collabora.com>
Thu, 19 Jan 2017 10:08:17 +0000 (10:08 +0000)
commitc8b46459d7473024227b5eedcef11b5d57113fe8
tree2464ef7dfd7944c14611417829940a213295ddfb
parent0bbe624bfb8a999151b02956985aaa37b3cf5817
clients: fix errno handling

clients/editor.c: In function ‘read_file’:
clients/editor.c:1578:16: warning: logical ‘or’ applied to non-boolean
constant [-Wlogical-op]
  errno = errsv || EINVAL;

This works in the shell, but not in C. Introduced in 411ffabbb56b

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emilio Pozuelo Monfort <pochu@debian.org>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
clients/editor.c