[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SQLite patch for smsd
From: |
Jan Derfinak |
Subject: |
Re: SQLite patch for smsd |
Date: |
Wed, 21 Jul 2010 15:51:19 +0200 (CEST) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
On Wed, 21 Jul 2010, slaweks82 wrote:
> But can smbd check my patch pls? I think there is bug in smsd/sqlite.c line
> 125
>
If I remember correctly, original SQLite patch was not accepted to smsd
because Me and Pawel have comments to this patch which had been not resolved
by author.
jan
>
> diff -Nura ./gnokii-0.6.29-jest-ok/smsd/sqlite.c
> ./gnokii-0.6.29/smsd/sqlite.c
> --- ./gnokii-0.6.29-jest-ok/smsd/sqlite.c
> +++ ./gnokii-0.6.29/smsd/sqlite.c
> @@ -122,7 +122,7 @@
> int i;
> for (i = 0; i < 6; i++) {
> error = sqlite3_step(stmt);
> - if (error = SQLITE_DONE)
> + if (error == SQLITE_DONE)
> break;
>
> sleep(1);
> @@ -135,7 +135,7 @@
> g_print(_("Error %d: %s\n"), error, sqlite3_errmsg(ppDbInbox));
> g_print(_("Query: %s\n"), buf->str);
> g_string_free(buf, TRUE);
> - return (1);
> + return SMSD_NOK;
> }
>
> sqlite3_finalize(stmt);
>
>
> regards
> Slawek
>
--