connection: Dereference id completely for comparasion.

This commit is contained in:
John Kåre Alsaker 2012-10-12 11:28:28 +02:00 committed by Kristian Høgsberg
parent a6bc8b426c
commit 4b6d0e65e7

View file

@ -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);