diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-01-13 16:16:41 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-01-13 16:16:41 +0000 |
commit | 3712c6f6d1a9cb3d95c11c476b513f51ac375c00 (patch) | |
tree | 6c09188da274988dd41a24e8811c348b0f12fbae /epan/wslua | |
parent | 19e4f8374f938dcf10ff30314d3f59aa62590fc9 (diff) |
Fix some Dereference of null pointer Warning found by Clang
svn path=/trunk/; revision=40456
Diffstat (limited to 'epan/wslua')
-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 d13b1fb56f..b593b7ed3b 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -259,7 +259,7 @@ typedef struct _wslua_private_table* PrivateTable; C to##C(lua_State* L, int idx) { \ C* v = (C*)lua_touserdata (L, idx); \ if (!v) luaL_typerror(L,idx,#C); \ - return *v; \ + return v ? *v : NULL; \ } \ C check##C(lua_State* L, int idx) { \ C* p; \ |