From 6a2efd9ff6e3657c35612f65c322ded25c984532 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 19 Feb 2015 19:51:12 -0800 Subject: 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 --- parse-xml.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-70-g09d2