diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-02-18 14:19:02 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-02-18 14:20:04 +0100 |
commit | 3ebd018c37f7025e21a07bfc3611b8facdd1d936 (patch) | |
tree | 8bb646c41b024b75f523bbafe80806814a06deed /vcl/source/helper | |
parent | 180fef2a54207555c39fb63ead5e66ba3a71a0cf (diff) |
fix uninitialized memory
Change-Id: I1cae656d2059779774643de93c698281b55b86fd
Diffstat (limited to 'vcl/source/helper')
-rw-r--r-- | vcl/source/helper/driverblocklist.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |