summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index df6b99eb1..d3b9e6c8d 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -220,7 +220,7 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
put_pressure(b, p, " o2pressure='", " bar'");
continue;
}
- put_pressure(b, sample->pressure[0], " pressure='", " bar'");
+ put_pressure(b, p, " pressure='", " bar'");
if (sensor != old->sensor[0]) {
put_format(b, " sensor='%d'", sensor);
old->sensor[0] = sensor;