Module: kamailio
Branch: master
Commit: f37940b9a113ab79611f851334af7f8fbb7b3f6a
URL: 
https://github.com/kamailio/kamailio/commit/f37940b9a113ab79611f851334af7f8fbb7b3f6a

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@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/f37940b9a113ab79611f851334af7f8fbb7b3f6a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/f37940b9a113ab79611f851334af7f8fbb7b3f6a.patch

---

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);

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to