From e36a67d03647444efbe94b5379552fbac3e5c367 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 21 Sep 2025 23:41:00 -0400 Subject: Fix empty string being parsed as float --- pom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.c b/pom.c index b41b9d4..e19c287 100644 --- a/pom.c +++ b/pom.c @@ -1689,6 +1689,7 @@ parse_int(const char *s, int64_t *val) { static bool parse_double(const char *s, double *val) { bool can_have_dot = true; + if (*s == 0) return false; for (const char *p = s; *p; p++) { char c = *p; if (c == '-' || c == '+') { -- cgit v1.2.3