Fix: common.c: logically dead code
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Aug 2019 19:04:48 +0000 (15:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:20 +0000 (11:58 -0400)
Found by Coverity Scan.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ib870cf62d6028bb26259d448e5dbee59dacb9759

src/common/common.c

index dacb5054fa04280e04a0f44b0bc7af2a1bb7eb20..404357a38beed46ebf55e086c17542c14cdf3e3a 100644 (file)
@@ -1780,9 +1780,7 @@ end:
                g_strfreev(lines);
        }
 
-       if (line_words) {
-               g_strfreev(line_words);
-       }
+       BT_ASSERT(!line_words);
 
        if (tmp_line) {
                g_string_free(tmp_line, TRUE);
This page took 0.025939 seconds and 4 git commands to generate.