builder/utils: Remove an unnecessary if-condition

We unconditionally allocate s above, so it can’t be NULL.

Coverity issue: 1376586

Signed-off-by: Philip Withnall <withnall@endlessm.com>
tingping/wmclass
Philip Withnall 2017-08-15 12:26:05 +01:00
parent 0cd65edc8b
commit ecbf42d7fa
1 changed files with 1 additions and 2 deletions

View File

@ -765,8 +765,7 @@ handle_dwarf2_line (DebuginfoData *data, uint32_t off, char *comp_dir, GHashTabl
}
canonicalize_path (s, s);
if (s)
g_hash_table_insert (files, s, NULL);
g_hash_table_insert (files, s, NULL);
(void) read_uleb128 (ptr);
(void) read_uleb128 (ptr);