summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-01 00:50:08 +0100
committerwm4 <wm4@nowhere>2012-11-01 02:12:18 +0100
commit9643590889ab96a3cef4c00d9fdf3cb49736e5c6 (patch)
treee74a45605341f577a373d83a09c89c9afbff4115 /m_option.c
parentbba1edfca598b6cb290ac5304839d62a434e8dfa (diff)
downloadmpv-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.c6
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++)
/**/;