[1/3]: Patch smsd/sqlite: Several bug fixes / optimizations

Pedro Aguilar <[email protected]>
Newsgroups gmane.linux.drivers.gnokii
Message-ID <CAEWWn28p7nK1iMvGLY2K9NHWjjB25gu3CTE2K2mrO_ydj9MpYg@mail.gmail.com>
Hi,

This very simple patch prints the correct error message when a
sqlite3_prepare_v2() fails.

Regards,
-- 
Pedro Aguilar
http://www.paguilar.org/blog

_______________________________________________
gnokii-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
01_sms_sqlite_msg_err.patch (application/octet-stream, 466 B)
--- a/smsd/sqlite.c	2013-03-14 14:41:22.695124391 +0100
+++ b/smsd/sqlite.c	2013-03-21 11:45:40.181225338 +0100
@@ -167,7 +167,7 @@
     ret1 = sqlite3_prepare_v2(ppDbOutbox, buf->str, -1, &stmt, NULL);
     if (ret1 != SQLITE_OK) {
         g_print(_("%d: Parsing query %s failed!"), __LINE__, buf->str);
-        g_print(_("Error: %s"), sqlite3_errmsg(ppDbInbox));
+        g_print(_("Error: %s"), sqlite3_errmsg(ppDbOutbox));
         return (SMSD_NOK);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.