Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@51650
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
{
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!");
void
_edje_lua_init()
{
- if (Ledje) return;
+ if (Ledje != NULL) return;
/*
* create main Lua state with the custom memory allocation function
*/
void
_edje_lua_shutdown()
{
- if (!Ledje) return;
+ if (Ledje == NULL) return;
lua_close(Ledje);
Ledje = NULL;
}