stefan pushed a commit to branch master.
commit 911dc0f2a9b11d78666c81e0fd86f5cf6c0a613b
Author: Stefan Schmidt <[email protected]>
Date: Thu Mar 28 10:55:05 2013 +0000
eina/examples: Return in a non-void function.
Reported by Simotek. Thanks!
---
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 244f202..5eddd04 100644
--- a/src/examples/eina/eina_magic_01.c
+++ b/src/examples/eina/eina_magic_01.c
@@ -24,6 +24,8 @@ person_new(const char *name)
person *ptr = malloc(sizeof(person));
EINA_MAGIC_SET(ptr, BASETYPE_MAGIC);
ptr->name = strdup(name);
+
+ return ptr;
}
void
--
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d