diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-02-28 09:18:42 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-02-28 09:18:42 +0000 |
commit | 2793a70e0fb344aa6b1f3bf7d4923f501c9dccc7 (patch) | |
tree | 67d98265748e8c3c732f38fe3a7acd1f170b4d3e /m_option.c | |
parent | 309dc7e6c6d786542d2272ef85e17e1579960d3c (diff) | |
download | mpv-2793a70e0fb344aa6b1f3bf7d4923f501c9dccc7.tar.bz2 mpv-2793a70e0fb344aa6b1f3bf7d4923f501c9dccc7.tar.xz |
remove C99-ism (mixed declaration and code),
10l to Uoti Urpala for breaking GCC-2.95 support yet again even though any post-2.95 GCC version print a clear warning about it
Patch by Carl Eugen Hoyos % cehoyos A ag P or P at %
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22374 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_option.c')
-rw-r--r-- | m_option.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m_option.c b/m_option.c index 996806fe39..2814e5dcdf 100644 --- a/m_option.c +++ b/m_option.c @@ -1204,10 +1204,12 @@ static double parse_timestring(char *str) static int parse_time(m_option_t* opt,char *name, char *param, void* dst, int src) { + double time; + if (param == NULL || strlen(param) == 0) return M_OPT_MISSING_PARAM; - double time = parse_timestring(param); + time = parse_timestring(param); if (time == -1e100) { mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: invalid time: '%s'\n", name,param); |