[Libreoffice-commits] core.git: cui/source

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 17 23:19:26 UTC 2020


 cui/source/dialogs/AdditionsDialog.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 3371e11d23635c69f242507a33b60daf2c21b433
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Sun Oct 18 01:35:25 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Sun Oct 18 01:18:46 2020 +0200

    tdf#137460: Additions: Fix crash on error 404
    
    Change-Id: Id1eb6d43add5d5d9c9f6c09a1e5a4137462f596e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104473
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx
index ad8f5de0928b..cf9a605d5970 100644
--- a/cui/source/dialogs/AdditionsDialog.cxx
+++ b/cui/source/dialogs/AdditionsDialog.cxx
@@ -123,6 +123,7 @@ std::string curlGet(const OString& rURL)
     if (http_code != 200)
     {
         SAL_WARN("cui.dialogs", "Download failed. Error code: " << http_code);
+        response_body.clear();
     }
 
     if (cc != CURLE_OK)


More information about the Libreoffice-commits mailing list