mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-25 06:59:46 -05:00
Don't compare socket(2) to NULL
Ugh, embarassing. Thanks, gcc 4.6.
This commit is contained in:
parent
c4df99cb2c
commit
8335568d07
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue