From 960596ae3aa52b6a847171d95f7cb58000fb7147 Mon Sep 17 00:00:00 2001 From: ngn Date: Wed, 31 Jul 2024 23:53:22 +0300 Subject: [PATCH] fix: don't free entry pointer --- locale/tr/LC_MESSAGES/libmp.po | 2 +- src/database/entry.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index f3d1ea0..6453229 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-31 21:14+0300\n" +"POT-Creation-Date: 2024-07-31 23:52+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/database/entry.c b/src/database/entry.c index 3e1060e..54cfbdd 100644 --- a/src/database/entry.c +++ b/src/database/entry.c @@ -78,7 +78,7 @@ bool lm_database_entry_find(lm_database_t *db, lm_entry_t *entry, char *name, ch // package pointer should already be free'd // we are initing it just in case the caller didn't if(NULL != entry) - lm_entry_free(entry); + lm_entry_init(entry); if(sqlite3_prepare(db->entries_db, query, strlen(query), &db->entries_st, NULL) != SQLITE_OK){ pdebug(__func__, "failed to prepare statement for finding %s: %s", name, sqlite3_errmsg(db->entries_db));