From 188ffd412ce3ea184b220956d460a3e2a949cb6b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 10 Jun 2014 14:24:36 +0900 Subject: [PATCH] Eo: Fix crash on WIN32 (wrong check for NULL) Thanks vtorri for the report --- src/lib/eo/eo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index ad4cd60..f2f0c6a 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -730,7 +730,7 @@ _eo_api_desc_get(const void *api_func, const _Eo_Class *klass, const _Eo_Class * * function name itself. Slow, but this should rarely happen. */ for (unsigned int i = 0; i < cur_klass->desc->ops.count; i++) - if (op_descs[i].api_name && !strcmp(api_name, op_descs[i].api_name)) + if (api_name && !strcmp(api_name, op_descs[i].api_name)) { if (op_descs[i].api_func == NULL || op_descs[i].api_func == ((void (*)())-1)) break; -- 2.7.4