From 8335568d070bfbde0f72e8129842222e8260bf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 25 Jan 2011 15:11:53 -0500 Subject: [PATCH] Don't compare socket(2) to NULL Ugh, embarassing. Thanks, gcc 4.6. --- wayland/wayland-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayland/wayland-server.c b/wayland/wayland-server.c index b494d11b..dece0d1b 100644 --- a/wayland/wayland-server.c +++ b/wayland/wayland-server.c @@ -649,7 +649,7 @@ wl_display_add_socket(struct wl_display *display, const char *name) const char *runtime_dir; s = malloc(sizeof *s); - if (socket == NULL) + if (s == NULL) return -1; s->fd = socket(PF_LOCAL, SOCK_STREAM, 0);