summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index ca25a28d6..c66525ffc 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -227,6 +227,9 @@ static void pressure(char *buffer, void *_press)
switch (integer_or_float(buffer, &val)) {
case FLOAT:
+ /* Just ignore zero values */
+ if (!val.fp)
+ break;
switch (units.pressure) {
case BAR:
/* Assume mbar, but if it's really small, it's bar */