From 1f2914271f77419b7c8443de5c03a23d75e04d5b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 7 Mar 2010 08:41:26 +0100 Subject: [PATCH] Tweak: add sqlite3 FIXME --- bacula/src/cats/sqlite.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5