Commit 255f9fb3 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

Fix warning about use of uninitialized values

Clang complains that these values may be used uninitialized if both
conditions are false. This can actually not happen, so just initialize
them to 0 to quiten up the compiler.

Change-Id: I32530b974058e3484b5e7005717b7cd389cf7305
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent f24d878b
......@@ -1688,7 +1688,7 @@ void WatchHandler::showEditValue(const WatchData &data)
showSeparateWidget(l);
m_model->m_editHandlers[key] = l;
}
int width, height, format;
int width = 0, height = 0, format = 0;
QByteArray ba;
uchar *bits = 0;
if (data.editformat == DisplayImageData) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment