another bug found by clang-checker: in virgo_lua_debugger.c: when tmp is NULL, tmp->next results in dereferencing NULL pointer.