summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--equipment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/equipment.c b/equipment.c
index 2d90f7a52..97388e79b 100644
--- a/equipment.c
+++ b/equipment.c
@@ -102,6 +102,8 @@ static void convert_volume_pressure(int ml, int mbar, double *v, double *p)
else
pressure = mbar / 1000.0;
*p = pressure;
+ } else {
+ *p = 0;
}
*v = volume;
}