From acd705fe9f6f8eca543900acc109a55f49cbc2d0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 26 Mar 2013 11:24:17 +0000 Subject: [PATCH] Eina examples: Fixed eina magic example. Return a value in the "new" function... --- src/examples/eina/eina_magic_01.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/examples/eina/eina_magic_01.c b/src/examples/eina/eina_magic_01.c index f42e193..244f202 100644 --- a/src/examples/eina/eina_magic_01.c +++ b/src/examples/eina/eina_magic_01.c @@ -46,6 +46,8 @@ pilot_new(const char *name, const char *callsign) EINA_MAGIC_SET(&ptr->base, BASETYPE_MAGIC); ptr->base.name = strdup(name); ptr->callsign = strdup(callsign); + + return ptr; } void -- 2.7.4