diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-18 15:22:09 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-18 15:22:09 -0700 |
commit | 12a910a0933681620bd07809ec8045ae63ae6c0b (patch) | |
tree | f85f1a36a5517780851c5b44ae776fde36b13ef6 /src/lua | |
parent | 850bd22ef47c1b0fca3894ece46ae6384200d7d9 (diff) | |
download | rspamd-12a910a0933681620bd07809ec8045ae63ae6c0b.tar.gz rspamd-12a910a0933681620bd07809ec8045ae63ae6c0b.zip |
Viva clang-3.4
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_ip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c index f5614afe3..647594198 100644 --- a/src/lua/lua_ip.c +++ b/src/lua/lua_ip.c @@ -62,7 +62,7 @@ static const struct luaL_reg iplib_f[] = { #define NEW_IP(n, o, p) do { \ (n) = g_slice_alloc (sizeof (struct rspamd_lua_ip)); \ - if (o != NULL) { memcpy ((n), (o) ? (o) : (n), sizeof (struct rspamd_lua_ip)); } \ + if ((o) != NULL) { memcpy ((n), (o) ? (o) : (n), sizeof (struct rspamd_lua_ip)); } \ (p) = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); \ rspamd_lua_setclass (L, "rspamd{ip}", -1); \ *(p) = (n); \ @@ -403,7 +403,6 @@ lua_ip_copy (lua_State *L) { struct rspamd_lua_ip *ip = lua_check_ip (L, 1), *nip, **pip; - const gchar *ip_str; if (ip) { NEW_IP(nip, ip, pip); |