author | Thomas Jansen <mithi@mithi.net> | |
Wed, 7 Oct 2009 21:33:34 +0000 (23:33 +0200) | ||
committer | Thomas Jansen <mithi@mithi.net> | |
Wed, 7 Oct 2009 21:33:34 +0000 (23:33 +0200) | ||
commit | 0d339540daafdcd43c770b9b944844c5466e614b | |
tree | 910a12eac97daa7414fb98c32deba469d582ace0 | tree | snapshot |
parent | 78c92e926d258f67667d4ad45644f95a25f33846 | commit | diff |
lyrics: replaced asserts with error handler
Handle missing artist and/or title for lyrics by defining an empty list of
plugins that fails almost immediately. Note that args in lyrics_load may now
start with NULL as the first array element. make_argv() in plugin.c made the
assumption that at least one argument is passed. If the first argument is
NULL a bogus pointer is returned by make_argv(). By converting do {} while
into while {}, we allow the first argument to be NULL.
Handle missing artist and/or title for lyrics by defining an empty list of
plugins that fails almost immediately. Note that args in lyrics_load may now
start with NULL as the first array element. make_argv() in plugin.c made the
assumption that at least one argument is passed. If the first argument is
NULL a bogus pointer is returned by make_argv(). By converting do {} while
into while {}, we allow the first argument to be NULL.
src/lyrics.c | diff | blob | history | |
src/plugin.c | diff | blob | history |