From: Kern Sibbald Date: Sun, 7 Mar 2010 07:41:26 +0000 (+0100) Subject: Tweak: add sqlite3 FIXME X-Git-Tag: Release-5.2.1~1634 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5543415afe29f262ebe9dacf1e0d592cb0cd8a7e;p=bacula%2Fbacula Tweak: add sqlite3 FIXME --- diff --git a/bacula/src/cats/sqlite.c b/bacula/src/cats/sqlite.c index 79d586864f..81a5c51661 100644 --- a/bacula/src/cats/sqlite.c +++ b/bacula/src/cats/sqlite.c @@ -454,6 +454,9 @@ void my_sqlite_field_seek(B_DB *mdb, int field) mdb->fields = (SQL_FIELD **)malloc(sizeof(SQL_FIELD) * mdb->ncolumn); for (i=0; i < sql_num_fields(mdb); i++) { mdb->fields[i] = (SQL_FIELD *)malloc(sizeof(SQL_FIELD)); + /* ***FIXME*** it seems to me that this is wrong + * fields has lots of items + */ if (mdb->result[i] == NULL) { mdb->fields_defined = false; free(mdb->fields);