diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 09:23:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 13:41:19 +0200 |
commit | 82ba7e2f78fa1c867c7df40a5b0120ced4446702 (patch) | |
tree | b5daa451a221a5311df785e434177c01861f83f7 /sal | |
parent | d25b88ca2b6f59ce9b43b5d2e37ac7b95f2489f1 (diff) |
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.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/profile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |