connection: Removed crashing code.
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 12 Oct 2012 09:28:26 +0000 (11:28 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 16 Oct 2012 15:15:02 +0000 (11:15 -0400)
src/connection.c

index f2ef230..c6b9449 100644 (file)
@@ -653,7 +653,6 @@ wl_connection_demarshal(struct wl_connection *connection,
        unsigned int i, count, extra_space;
        const char *signature = message->signature;
        struct argument_details arg;
-       struct wl_object **object;
        struct wl_array **array;
        struct wl_closure *closure;
 
@@ -746,7 +745,6 @@ wl_connection_demarshal(struct wl_connection *connection,
                                printf("NULL object received on non-nullable "
                                       "type, message %s(%s)\n", message->name,
                                       message->signature);
-                               *object = NULL;
                                errno = EINVAL;
                                goto err;
                        }