Module: kamailio Branch: master Commit: f37940b9a113ab79611f851334af7f8fbb7b3f6a URL: https://github.com/kamailio/kamailio/commit/f37940b9a113ab79611f851334af7f8f...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-02-11T15:27:26+01:00
db_sqlite: added prefix to internal helper function
---
Modified: src/modules/db_sqlite/dbase.c
---
Diff: https://github.com/kamailio/kamailio/commit/f37940b9a113ab79611f851334af7f8f... Patch: https://github.com/kamailio/kamailio/commit/f37940b9a113ab79611f851334af7f8f...
---
diff --git a/src/modules/db_sqlite/dbase.c b/src/modules/db_sqlite/dbase.c index a82f8e59546..2ff40fc0898 100644 --- a/src/modules/db_sqlite/dbase.c +++ b/src/modules/db_sqlite/dbase.c @@ -369,7 +369,7 @@ static int type_to_dbtype(int type) } }
-static str *str_dup(const char *_s) +static str *sqlt_str_dup(const char *_s) { str *s; int len = strlen(_s); @@ -432,7 +432,8 @@ int db_sqlite_store_result(const db1_con_t *_h, db1_res_t **_r) const char *decltype; int dbtype;
- RES_NAMES(res)[i] = str_dup(sqlite3_column_name(conn->stmt, i)); + RES_NAMES(res) + [i] = sqlt_str_dup(sqlite3_column_name(conn->stmt, i)); if(RES_NAMES(res)[i] == NULL) goto no_mem; decltype = sqlite3_column_decltype(conn->stmt, i);