ucb/source/ucp/webdav-curl/ImportCookies.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 4c6574abe8cca7d74129c12c486b722c668fdaba
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Tue Mar 12 14:44:00 2024 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Tue Mar 12 14:44:16 2024 +0100

    ucb: webdav-curl: avoid crashing in SAL_INFO
    
    It's not clear why calling sqlite3_errmsg would crash, but avoid it...
    
    Change-Id: If2a375671fd5484d72af1c0f538f424f02149a0a

diff --git a/ucb/source/ucp/webdav-curl/ImportCookies.cxx 
b/ucb/source/ucp/webdav-curl/ImportCookies.cxx
index 4df885e4efc7..fa9aa9731b1a 100644
--- a/ucb/source/ucp/webdav-curl/ImportCookies.cxx
+++ b/ucb/source/ucp/webdav-curl/ImportCookies.cxx
@@ -94,7 +94,9 @@ OString 
TryImportCookies(uno::Reference<uno::XComponentContext> const& xContext[
     int rc = sqlite3_open_v2(dbUrl.getStr(), &db, SQLITE_OPEN_READONLY | 
SQLITE_OPEN_URI, nullptr);
     if (rc != SQLITE_OK)
     {
-        SAL_INFO("ucb.ucp.webdav.curl", "sqlite3_open failed: " << 
sqlite3_errmsg(db));
+        // apparently this may crash, and sqlite3_errstr() isn't exported?
+        // SAL_INFO("ucb.ucp.webdav.curl", "sqlite3_open failed: " << 
sqlite3_errmsg(db));
+        SAL_INFO("ucb.ucp.webdav.curl", "sqlite3_open failed: " << rc);
         sqlite3_close(db);
     }
     char* err(nullptr);

Reply via email to