summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-06-19 10:37:36 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-06-19 10:37:36 +1000
commit673d946275fdd82959b18ef1f318925f0d070b21 (patch)
tree4cbeb296676e5df1dbf25a79bb28edb22df43f25 /src
parent6d27ff38c0d606cee0dd216c0162884bebd8c566 (diff)
evdev: default to log error priority
Fixes compiler warning: evdev.c:2899:2: warning: 'pri' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index f0f7906..a680414 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2878,7 +2878,7 @@ libevdev_log_func(const struct libevdev *evdev,
va_list args)
{
struct libinput *libinput = data;
- enum libinput_log_priority pri;
+ enum libinput_log_priority pri = LIBEVDEV_LOG_ERROR;
const char prefix[] = "libevdev: ";
char fmt[strlen(format) + strlen(prefix) + 1];