--- libelwix/src/vars.c 2022/01/21 23:14:31 1.9.56.1 +++ libelwix/src/vars.c 2022/01/24 16:01:49 1.9.56.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: vars.c,v 1.9.56.1 2022/01/21 23:14:31 misho Exp $ +* $Id: vars.c,v 1.9.56.2 2022/01/24 16:01:49 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -532,17 +532,17 @@ ait_array2vars(const char **args, int dn) if (dn) { n = strtol(*args, &str, 0); - if (!str) { + if (!str || !*str) { AIT_SET_I64(val, (int64_t) n); continue; } f = strtof(*args, &str); - if (!str) { + if (!str || !*str) { AIT_SET_F32(val, f); continue; } d = strtod(*args, &str); - if (!str) { + if (!str || !*str) { AIT_SET_F64(val, d); continue; }