summaryrefslogtreecommitdiff
path: root/pom.c
diff options
context:
space:
mode:
Diffstat (limited to 'pom.c')
-rw-r--r--pom.c1
1 files changed, 1 insertions, 0 deletions
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 == '+') {