diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-25 15:11:53 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-25 15:11:58 -0500 |
commit | 8335568d070bfbde0f72e8129842222e8260bf07 (patch) | |
tree | 9bfe9b9c351ff7586defd050036145122b02b525 | |
parent | c4df99cb2c573d5b1ed1cadbcb8c92a1a39ba694 (diff) |
Don't compare socket(2) to NULL
Ugh, embarassing. Thanks, gcc 4.6.
-rw-r--r-- | wayland/wayland-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland/wayland-server.c b/wayland/wayland-server.c index b494d11..dece0d1 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); |