diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-03-04 16:00:05 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-03-04 16:00:05 +0000 |
commit | 2688c9b3f3ce0b71ab8cc896f120ea2b82ed2611 (patch) | |
tree | 98457db9274a9922927adda712c47fd6215aefeb /epan/wslua/wslua.h | |
parent | 379a3e53ec9ca2626b045857e19f92250edf08e0 (diff) |
do not return before ENDTRY when handling an exception, this would leave the fat stack without the top and cause the dereferencing of a null pointer later on when popping in the next ENDTRY.
Oddly enough this shows up only on windows. Maybe there's something good in my Mac's temporary disability!
svn path=/trunk/; revision=20972
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r-- | epan/wslua/wslua.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 481d87673b..ebef7d214c 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -276,7 +276,7 @@ int dummy##C #define WSLUA_META static const luaL_reg #define WSLUA_CLASS_FNREG(class,name) { #name, class##_##name } -#define WSLUA_ERROR(name,error) { luaL_error(L, #name ": " error); return 0; } +#define WSLUA_ERROR(name,error) { luaL_error(L, ep_strdup_printf("%s%s", #name ": " ,error) ); return 0; } #define WSLUA_ARG_ERROR(name,attr,error) { luaL_argerror(L,WSLUA_ARG_ ## name ## _ ## attr, #name ": " error); return 0; } #define WSLUA_OPTARG_ERROR(name,attr,error) { luaL_argerror(L,WSLUA_OPTARG_##name##_ ##attr, #name ": " error); return 0; } |