commit 0ce6db4219ff3822a1d0ac62eb691d6fa1f5a675
parent 9bf78015eab035ab85dbe89125cb2c3c71af7098
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Mon, 11 May 2020 09:59:30 +0200
BugFix: invalid arg detection
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/stardis-parsing.c b/src/stardis-parsing.c
@@ -1309,7 +1309,7 @@ read_imposed_temperature
ERR(str_set(&keep, tk));
if(RES_OK == cstr_to_double(tk, imposed_temperature)) {
/* Was a number */
- if(imposed_temperature < 0) {
+ if(*imposed_temperature < 0) {
res = RES_BAD_ARG;
goto error;
}
@@ -1349,7 +1349,7 @@ read_delta
ERR(str_set(&keep, tk));
if(RES_OK == cstr_to_double(tk, delta)) {
/* Was a number */
- if(delta <= 0) {
+ if(*delta <= 0) {
res = RES_BAD_ARG;
goto error;
}