summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2012-10-12 11:28:28 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-10-16 11:24:31 -0400
commit4b6d0e65e7768f68260b35cf109e83d829480a62 (patch)
tree5c02789215723aae599385272396723f5c19b75c /src
parenta6bc8b426c4ef089c33c95bec487d3101b110277 (diff)
connection: Dereference id completely for comparasion.
Diffstat (limited to 'src')
-rw-r--r--src/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection.c b/src/connection.c
index c6b9449..141875e 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -741,7 +741,7 @@ wl_connection_demarshal(struct wl_connection *connection,
closure->args[i] = id;
*id = p;
- if (*id == 0 && !arg.nullable) {
+ if (**id == 0 && !arg.nullable) {
printf("NULL object received on non-nullable "
"type, message %s(%s)\n", message->name,
message->signature);
@@ -758,7 +758,7 @@ wl_connection_demarshal(struct wl_connection *connection,
closure->args[i] = id;
*id = p;
- if (*id == 0 && !arg.nullable) {
+ if (**id == 0 && !arg.nullable) {
printf("NULL new ID received on non-nullable "
"type, message %s(%s)\n", message->name,
message->signature);