[Libreoffice-commits] core.git: vcl/source
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 18 13:20:43 UTC 2020
vcl/source/helper/driverblocklist.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3ebd018c37f7025e21a07bfc3611b8facdd1d936
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue Feb 18 14:19:02 2020 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Feb 18 14:20:04 2020 +0100
fix uninitialized memory
Change-Id: I1cae656d2059779774643de93c698281b55b86fd
diff --git a/vcl/source/helper/driverblocklist.cxx b/vcl/source/helper/driverblocklist.cxx
index 0700731abf45..de1c81992789 100644
--- a/vcl/source/helper/driverblocklist.cxx
+++ b/vcl/source/helper/driverblocklist.cxx
@@ -223,7 +223,7 @@ static bool SplitDriverVersion(const char* aSource, char* aAStr, char* aBStr, ch
// Vulkan version numbers have only 3 fields.
if (destIdx == SAL_N_ELEMENTS(dest) - 2)
- dest[destIdx++][0] = '\0';
+ dest[++destIdx][0] = '\0';
if (destIdx != SAL_N_ELEMENTS(dest) - 1)
{
return false;
More information about the Libreoffice-commits
mailing list