[krh/wayland/next 5/5] connection: Dereference id completely for comparasion.

John Kåre Alsaker john.kare.alsaker at gmail.com
Fri Oct 12 02:28:28 PDT 2012


---
 src/connection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index ad060b0..6878eba 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -710,7 +710,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);
@@ -727,7 +727,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);
-- 
1.7.12.2



More information about the wayland-devel mailing list