mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
m_option: minor simplification
Relict of mplayer's C89 compatibility?
This commit is contained in:
parent
bba1edfca5
commit
9643590889
@ -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++)
|
||||
/**/;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user