commit | d470773f615b00ede527b39745316abadf684c8b | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Jun 19 07:56:28 2024 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Jun 19 07:56:28 2024 +0200 |
tree | 7768740340607b2ef3e83a4713c38273a7cccc8a | |
parent | c676b2a027cec1e0ef72ba376bbd9ac855b20a52 [diff] [blame] |
xpath BUGFIX empty string should be converted to NAN double Fixes #2256
diff --git a/src/xpath.c b/src/xpath.c index 37055d4..8e9bf02 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -690,7 +690,7 @@ errno = 0; num = strtold(str, &ptr); - if (errno || *ptr) { + if (errno || *ptr || (ptr == str)) { num = NAN; } return num;