sal/osl/w32/profile.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 82ba7e2f78fa1c867c7df40a5b0120ced4446702
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Apr 30 09:23:46 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Apr 30 13:41:19 2024 +0200

    we dereference pProfile->m_Lines on the next line anyway
    
    Change-Id: I8ab203baa6276cb950e5a6168af32cb4a9fa24d3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166915
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 413171eab3e9..4a0fa385a565 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -1353,9 +1353,9 @@ static const char* addLine(osl_TProfileImpl* pProfile, 
const char* Line)
 
     }
 
-    if ( pProfile->m_Lines != nullptr && 
pProfile->m_Lines[pProfile->m_NoLines] != nullptr )
+    if (pProfile->m_Lines[pProfile->m_NoLines] != nullptr)
     {
-            free(pProfile->m_Lines[pProfile->m_NoLines]);
+        free(pProfile->m_Lines[pProfile->m_NoLines]);
     }
     pProfile->m_Lines[pProfile->m_NoLines++] = strdup(Line);
 
  • core.git: sal/osl Caolán McNamara (via logerrit)
    • core.git: sal/osl Caolán McNamara (via logerrit)

Reply via email to