]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Fix coverity warning of return value 9325/head
authoranlan_cs <anlan_cs@tom.com>
Sun, 8 Aug 2021 01:34:29 +0000 (21:34 -0400)
committeranlan_cs <anlan_cs@tom.com>
Sun, 8 Aug 2021 01:57:55 +0000 (21:57 -0400)
Suppress coverity warning on unchecked str2sockunion's return value.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
lib/frrlua.c

index 96d72694409ec4bc4b2b83736773b9142af164fc..928780f2d464c03ab7ac1eb189944c3780ea1abc 100644 (file)
@@ -240,7 +240,7 @@ void lua_pushsockunion(lua_State *L, const union sockunion *su)
 void lua_decode_sockunion(lua_State *L, int idx, union sockunion *su)
 {
        lua_getfield(L, idx, "string");
-       str2sockunion(lua_tostring(L, -1), su);
+       (void)str2sockunion(lua_tostring(L, -1), su);
        lua_pop(L, 1);
        /* pop the table */
        lua_pop(L, 1);