From 9643590889ab96a3cef4c00d9fdf3cb49736e5c6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Nov 2012 00:50:08 +0100 Subject: m_option: minor simplification Relict of mplayer's C89 compatibility? --- m_option.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'm_option.c') 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++) /**/; -- cgit v1.2.3