m_option: minor simplification

Relict of mplayer's C89 compatibility?
This commit is contained in:
wm4 2012-11-01 00:50:08 +01:00
parent bba1edfca5
commit 9643590889
1 changed files with 2 additions and 4 deletions

View File

@ -746,13 +746,11 @@ static void free_str_list(void *dst)
static int str_list_add(char **add, int n, void *dst, int pre)
{
char **lst = VAL(dst);
int ln;
if (!dst)
return M_OPT_PARSER_ERR;
lst = VAL(dst);
char **lst = VAL(dst);
int ln;
for (ln = 0; lst && lst[ln]; ln++)
/**/;