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 411ffabbb5

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>
This commit is contained in:
Peter Hutterer 2017-01-19 08:21:45 +10:00 committed by Daniel Stone
parent 0bbe624bfb
commit c8b46459d7
1 changed files with 1 additions and 1 deletions

View File

@ -1575,7 +1575,7 @@ error:
if (fin)
fclose(fin);
free(buffer);
errno = errsv || EINVAL;
errno = errsv ? errsv : EINVAL;
return NULL;
}