diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-07 10:16:18 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-07 10:16:18 -0700 |
commit | 047993c76a677ca12a2b575990b99e3ddbc0dd58 (patch) | |
tree | be290e550ddd6b89a3d5cd719a99e1feb7d78e87 /src/Makefile.am | |
parent | bee68e54e5c3a4b9f46c81366a720531e3e07a82 (diff) |
Correct error handling in _XcursorAverageColor
Previously it would either div-zero or get stuck in a loop until int overflow
if called with a bad value.
cursor.c:214:32: warning: Division by zero
return (0xff << 24) | ((red/npixels) << 16) | ((green/npixels) << 8) | (blue/npixels);
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/Makefile.am')
0 files changed, 0 insertions, 0 deletions