diff options
-rw-r--r-- | src/builddir.h | 2 | ||||
-rw-r--r-- | src/evdev-mt-touchpad-thumb.c | 5 | ||||
-rw-r--r-- | test/litest-selftest.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/builddir.h b/src/builddir.h index 19825759..84aa8f68 100644 --- a/src/builddir.h +++ b/src/builddir.h @@ -35,7 +35,7 @@ static inline char * builddir_lookup(void) { - char execdir[PATH_MAX] = {0}; + char execdir[PATH_MAX]; char *pathsep; ssize_t nread; diff --git a/src/evdev-mt-touchpad-thumb.c b/src/evdev-mt-touchpad-thumb.c index 2beaa54c..17b324e2 100644 --- a/src/evdev-mt-touchpad-thumb.c +++ b/src/evdev-mt-touchpad-thumb.c @@ -358,8 +358,9 @@ tp_thumb_update_multifinger(struct tp_dispatch *tp) * the behavior of the other touches.) */ - if ((newest->initial_time - oldest->initial_time) < THUMB_TIMEOUT && - first->point.y < tp->thumb.lower_thumb_line) { + if (newest && + (newest->initial_time - oldest->initial_time) < THUMB_TIMEOUT && + first->point.y < tp->thumb.lower_thumb_line) { tp_thumb_lift(tp); return; } diff --git a/test/litest-selftest.c b/test/litest-selftest.c index 75662a01..b7fbdb56 100644 --- a/test/litest-selftest.c +++ b/test/litest-selftest.c @@ -350,7 +350,7 @@ END_TEST START_TEST(zalloc_overflow) { - zalloc(-1); + zalloc((size_t)-1); } END_TEST |