From b581d13a7e799edf54a287a8f429c992d774993e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 25 Feb 2013 16:01:38 -0500 Subject: [PATCH] scanner: Fix 'destroy)' typo in check for destroy request presence 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index fef85ab..9c14ad3 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -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; } -- 2.7.4