diff options
author | Eirik Aavitsland <[email protected]> | 2021-03-10 15:18:03 +0100 |
---|---|---|
committer | Qt CI Bot <[email protected]> | 2021-03-12 11:41:26 +0000 |
commit | f0862c08f1a15baff20bca1d4c0fd9f331671b46 (patch) | |
tree | 523db80d46854cab73eb5fa6606dde924f9127b1 | |
parent | f226854d256a382a5cc7ff08b10a0d27fbefb0fe (diff) | |
parent | f651e6a26cb59f7b7c7671cded8a10b9f98f5c71 (diff) |
Merge "Avoid undefined color values in corrupt xpm image"
-rw-r--r-- | src/gui/image/qxpmhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qxpmhandler.cpp b/src/gui/image/qxpmhandler.cpp index 7b545614a78..8ec09f24801 100644 --- a/src/gui/image/qxpmhandler.cpp +++ b/src/gui/image/qxpmhandler.cpp @@ -934,7 +934,7 @@ static bool read_xpm_body( colorMap.insert(xpmHash(QLatin1String(index.constData())), 0); } } else { - QRgb c_rgb; + QRgb c_rgb = 0; if (((buf.length()-1) % 3) && (buf[0] == '#')) { buf.truncate(((buf.length()-1) / 4 * 3) + 1); // remove alpha channel left by imagemagick } |