Fix clang address sanitiser error in SNI memcpy.

Authored by davidedmundson on Jan 19 2017, 4:01 PM.

Description

Fix clang address sanitiser error in SNI memcpy.

Summary:
If an image is created with no size, QImage::data() points to nullptr.
We then pass this as an argument to memcpy. It doesn't really matter
because we're copying 0 bytes into it, but it's still thrown as an
error.

plasma-
workspace/dataengines/statusnotifieritem/statusnotifieritemsource.cpp:401:12:
runtime error: null pointer passed as argument 1, which is declared to
never be null

Test Plan: Ran it again. No error

Reviewers: Plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D4196

Details

Committed
davidedmundsonJan 19 2017, 4:01 PM
Reviewer
apol
Differential Revision
D4196: Fix clang address sanitiser error in SNI memcpy.
Parents
R120:cb2803900fa5: Require Qt 5.7
Branches
Unknown
Tags
Unknown