connection: Object ID 0 is not a valid new object ID
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 12 Aug 2011 20:32:13 +0000 (16:32 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 17 Aug 2011 02:33:36 +0000 (22:33 -0400)
src/connection.c

index 467a2d0..6dfb0b9 100644 (file)
@@ -600,7 +600,7 @@ wl_connection_demarshal(struct wl_connection *connection,
                        closure->types[i] = &ffi_type_uint32;
                        closure->args[i] = p;
                        object = wl_hash_table_lookup(objects, *p);
-                       if (object != NULL) {
+                       if (*p == 0 || object != NULL) {
                                printf("not a new object (%d), "
                                       "message %s(%s)\n",
                                       *p, message->name, message->signature);