projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4df99c
)
Don't compare socket(2) to NULL
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 25 Jan 2011 20:11:53 +0000
(15:11 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 25 Jan 2011 20:11:58 +0000
(15:11 -0500)
Ugh, embarassing. Thanks, gcc 4.6.
wayland/wayland-server.c
patch
|
blob
|
history
diff --git
a/wayland/wayland-server.c
b/wayland/wayland-server.c
index
b494d11
..
dece0d1
100644
(file)
--- 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 (s
ocket
== NULL)
+ if (s == NULL)
return -1;
s->fd = socket(PF_LOCAL, SOCK_STREAM, 0);