add_entry already checks for list nullity --- src/file/keydbcfg-parser.y | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/file/keydbcfg-parser.y b/src/file/keydbcfg-parser.y index fd11c64..b0227bf 100644 --- a/src/file/keydbcfg-parser.y +++ b/src/file/keydbcfg-parser.y @@ -289,10 +289,8 @@ disc_info celist->next = new_title_entry_list(); celist = celist->next; } - if (celist) { - add_entry(celist, ENTRY_TYPE_DISCID, $1); - /*add_entry(celist, ENTRY_TYPE_TITLE, $3);*/ - } + add_entry(celist, ENTRY_TYPE_DISCID, $1); + /*add_entry(celist, ENTRY_TYPE_TITLE, $3);*/ } ; -- 2.11.0 _______________________________________________ libaacs-devel mailing list libaacs-devel@videolan.org https://mailman.videolan.org/listinfo/libaacs-devel