]> diplodocus.org Git - xorg-xinput/commitdiff
Silence compiler warning
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 May 2011 07:02:48 +0000 (17:02 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 May 2011 00:39:01 +0000 (10:39 +1000)
Static analysis claims that ptr += size may assign garbage. But since the
protocol requires format to be 8, 16 or 32, size should always have a valid
value. Initialize to 0 to shut up clang.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>

No differences found