diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-19 10:37:36 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-19 10:37:36 +1000 |
commit | 673d946275fdd82959b18ef1f318925f0d070b21 (patch) | |
tree | 4cbeb296676e5df1dbf25a79bb28edb22df43f25 /src | |
parent | 6d27ff38c0d606cee0dd216c0162884bebd8c566 (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.c | 2 |
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]; |