aboutsummaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-19 19:51:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-19 19:52:58 -0800
commit6a2efd9ff6e3657c35612f65c322ded25c984532 (patch)
treeab46587760a1325ba74f3a3e0b66f61059a8c6f6 /parse-xml.c
parent4682002474e6929ce2c98afdd3e951f04d09f246 (diff)
downloadsubsurface-6a2efd9ff6e3657c35612f65c322ded25c984532.tar.gz
The callback function has to return 0 or sql processing fails
Which means we report an error even if there wasn't a problem. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 927a06431..8826f2fe3 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2087,6 +2087,7 @@ extern int dm5_cylinders(void *handle, int columns, char **data, char **column)
if (data[3])
cur_dive->cylinder[cur_cylinder_index].gasmix.he.permille = atoi(data[3]) * 10;
cylinder_end();
+ return 0;
}