Re: [PATCH 2/2] server: fix conditions for fds in wl_socket_destroy

2014-08-07 Thread Pekka Paalanen
On Wed, 6 Aug 2014 12:18:12 +0200 Marek Chalupa wrote: > The only value that is false with the former condition is 0. > On error we set fd to -1. > --- > src/wayland-server.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/wayland-server.c b/src/wayland-server.

[PATCH 2/2] server: fix conditions for fds in wl_socket_destroy

2014-08-06 Thread Marek Chalupa
The only value that is false with the former condition is 0. On error we set fd to -1. --- src/wayland-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index ce7bbff..c8aecb8 100644 --- a/src/wayland-server.c +++ b/src/way