scanner: Fix 'destroy)' typo in check for destroy request presence
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 25 Feb 2013 21:01:38 +0000 (16:01 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Mar 2013 00:19:16 +0000 (19:19 -0500)
This is there to enforce that we don't have interfaces with a destroy
request that isn't a destructor.  The check never worked because of the
typo, but we also don't have any interfaces like that.

src/scanner.c

index fef85ab..9c14ad3 100644 (file)
@@ -568,7 +568,7 @@ emit_stubs(struct wl_list *message_list, struct interface *interface)
        wl_list_for_each(m, message_list, link) {
                if (m->destructor)
                        has_destructor = 1;
-               if (strcmp(m->name, "destroy)") == 0)
+               if (strcmp(m->name, "destroy") == 0)
                        has_destroy = 1;
        }