projects
/
framework
/
uifw
/
edje.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63e461
)
[svn merge] Changeset 51650 - Revert and reapply badnull patch
author
Myungjae Lee
<mjae.lee@samsung.com>
Wed, 6 Oct 2010 05:20:53 +0000
(14:20 +0900)
committer
Myungjae Lee
<mjae.lee@samsung.com>
Wed, 6 Oct 2010 05:20:53 +0000
(14:20 +0900)
src/lib/edje_lua.c
patch
|
blob
|
history
diff --git
a/src/lib/edje_lua.c
b/src/lib/edje_lua.c
index
78e48df
..
78fe5cd
100644
(file)
--- a/
src/lib/edje_lua.c
+++ b/
src/lib/edje_lua.c
@@
-389,7
+389,7
@@
_edje_lua_new_class(lua_State *L, const Edje_Lua_Reg ** class)
{
int n = 0;
_edje_lua_new_metatable(L, class);
- while (class && (class[n]))
+ while (class && (class[n]
!= NULL
))
{
luaL_register(L, NULL, class[n]->mt);
lua_pushstring(L, "hands off, it's none of your business!");
@@
-5079,7
+5079,7
@@
_edje_lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
void
_edje_lua_init()
{
- if (Ledje) return;
+ if (Ledje
!= NULL
) return;
/*
* create main Lua state with the custom memory allocation function
*/
@@
-5165,7
+5165,7
@@
_edje_lua_init()
void
_edje_lua_shutdown()
{
- if (
!Ledje
) return;
+ if (
Ledje == NULL
) return;
lua_close(Ledje);
Ledje = NULL;
}