summaryrefslogtreecommitdiff
path: root/src/sqlite.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-12-13 15:35:31 +0200
committerEli Zaretskii <eliz@gnu.org>2021-12-13 15:35:31 +0200
commit57efc5d1bb60f6abb4766387b708e20532638135 (patch)
treed56a56ca124aa0f419bc387c91642d8876c27ef9 /src/sqlite.c
parent38f782f48df3a35c2735707892610325a5cba92d (diff)
downloademacs-57efc5d1bb60f6abb4766387b708e20532638135.tar.gz
* src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE.
Diffstat (limited to 'src/sqlite.c')
-rw-r--r--src/sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sqlite.c b/src/sqlite.c
index 4968ce3f690..248ad478d57 100644
--- a/src/sqlite.c
+++ b/src/sqlite.c
@@ -247,7 +247,7 @@ If FILE is nil, an in-memory database will be opened instead. */)
if (!NILP (file))
{
CHECK_STRING (file);
- file = encode_string (Fexpand_file_name (file, Qnil));
+ file = ENCODE_FILE (Fexpand_file_name (file, Qnil));
name = xstrdup (SSDATA (file));
}
else
@@ -596,7 +596,7 @@ system-dependent file-name extension. */)
{
check_sqlite (db, false);
CHECK_STRING (module);
- Lisp_Object module_encoded = encode_string (Fexpand_file_name (module, Qnil));
+ Lisp_Object module_encoded = ENCODE_FILE (Fexpand_file_name (module, Qnil));
sqlite3 *sdb = XSQLITE (db)->db;
int result = sqlite3_load_extension (sdb, SSDATA (module_encoded),