From: Kern Sibbald Date: Sun, 7 Mar 2010 07:41:26 +0000 (+0100) Subject: Tweak: add sqlite3 FIXME X-Git-Tag: Release-7.0.0~2099 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f2914271f77419b7c8443de5c03a23d75e04d5b;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);