summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/equipment.c b/equipment.c
index 4c692f33b..189cc617f 100644
--- a/equipment.c
+++ b/equipment.c
@@ -108,6 +108,8 @@ void convert_volume_pressure(int ml, int mbar, double *v, double *p)
else
pressure = mbar / 1000.0;
*p = pressure;
+ } else {
+ *p = 0;
}
*v = volume;
}