diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-12 16:32:13 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-08-16 22:33:36 -0400 |
commit | f6ede01b68ebdd74b2025bd087b8b52b0b5f2eef (patch) | |
tree | f29bdce29bbf3c73d91a301ec72bb2c9b6e9aa1e /src | |
parent | efeb9e977885c2df3426346ec45a913ff403af8d (diff) |
connection: Object ID 0 is not a valid new object ID
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c index 467a2d0..6dfb0b9 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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); |