summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-07 10:16:18 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-05-07 10:16:18 -0700
commit047993c76a677ca12a2b575990b99e3ddbc0dd58 (patch)
treebe290e550ddd6b89a3d5cd719a99e1feb7d78e87 /src/Makefile.am
parentbee68e54e5c3a4b9f46c81366a720531e3e07a82 (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