diff options
author | wm4 <wm4@nowhere> | 2012-11-01 00:50:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:12:18 +0100 |
commit | 9643590889ab96a3cef4c00d9fdf3cb49736e5c6 (patch) | |
tree | e74a45605341f577a373d83a09c89c9afbff4115 /m_option.c | |
parent | bba1edfca598b6cb290ac5304839d62a434e8dfa (diff) | |
download | mpv-9643590889ab96a3cef4c00d9fdf3cb49736e5c6.tar.bz2 mpv-9643590889ab96a3cef4c00d9fdf3cb49736e5c6.tar.xz |
m_option: minor simplification
Relict of mplayer's C89 compatibility?
Diffstat (limited to 'm_option.c')
-rw-r--r-- | m_option.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/m_option.c b/m_option.c index 2ad80f6eef..3f300326ca 100644 --- a/m_option.c +++ b/m_option.c @@ -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++) /**/; |