summaryrefslogtreecommitdiff
path: root/ui/qt/color_utils.cpp
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2015-10-07 17:00:51 +0200
committerMichael Mann <mmann78@netscape.net>2015-10-08 02:50:48 +0000
commitaf3beb8beb94884d4dabac03b342de41d79bea0c (patch)
tree929d9526b4ffa12fc71e543101af7718978f186e /ui/qt/color_utils.cpp
parentfb02613c9ad2fe1a7e9343599774bd777af0da7d (diff)
downloadwireshark-af3beb8beb94884d4dabac03b342de41d79bea0c.tar.gz
qt: add initialization of variable (CID 1311960)
Change-Id: I25bae2899f19982ee52c5ffb933a1459897b933b Reviewed-on: https://code.wireshark.org/review/10864 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/color_utils.cpp')
-rw-r--r--ui/qt/color_utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/color_utils.cpp b/ui/qt/color_utils.cpp
index dbb93530f5..e150a14003 100644
--- a/ui/qt/color_utils.cpp
+++ b/ui/qt/color_utils.cpp
@@ -89,6 +89,7 @@ QColor ColorUtils::fromColorT(color_t color)
const color_t ColorUtils::toColorT(const QColor color)
{
color_t colort;
+ colort.pixel = 0;
colort.red = (color.red() << 8) | color.red();
colort.green = (color.green() << 8) | color.green();
colort.blue = (color.blue() << 8) | color.blue();