From 2b80db65e3d14eaec9e4db2645efee4213fb0289 Mon Sep 17 00:00:00 2001 From: szabii Date: Thu, 22 Mar 2001 15:25:28 +0000 Subject: [PATCH] fix TYPE_FLOAT parameter reading git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@192 b3059339-0415-0410-9bf9-f77b7e298cf2 --- cfgparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfgparser.c b/cfgparser.c index 7886d0d9de..e932931842 100644 --- a/cfgparser.c +++ b/cfgparser.c @@ -141,7 +141,7 @@ static int read_option(char *opt, char *param) case CONF_TYPE_FLOAT: if (param == NULL) goto err_missing_param; - if (!isdigit(*param)) { + if (!isdigit(*param) && *param != '-' && *param != '.') { printf("parameter must be a floating point number:\n"); ret = ERR_MISSING_PARAM; goto out;