libaacs | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Tue May 2 16:17:42 2017 +0200| [e4edd3ee1b4a9805958454f983449b34be7d0b61] | committer: npzacs
keydbcfg-parser: Remove duplicated check add_entry already checks for list nullity > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=e4edd3ee1b4a9805958454f983449b34be7d0b61 --- 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);*/ } ; _______________________________________________ libaacs-devel mailing list libaacs-devel@videolan.org https://mailman.videolan.org/listinfo/libaacs-devel