vcl/source/helper/driverblocklist.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3ebd018c37f7025e21a07bfc3611b8facdd1d936
Author:     Luboš Luňák <[email protected]>
AuthorDate: Tue Feb 18 14:19:02 2020 +0100
Commit:     Luboš Luňák <[email protected]>
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;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to