From 25bb70e02407822ae5b03e74571275afcd037f98 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sat, 28 Jul 2018 08:28:36 +0000 Subject: xev: fix 'mode' in default case (version 2) Signed-off-by: Eitan Adler Signed-off-by: Peter Hutterer --- xev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xev.c b/xev.c index 6cde09a..638eae7 100644 --- a/xev.c +++ b/xev.c @@ -225,7 +225,7 @@ do_EnterNotify (XEvent *eventp) case NotifyGrab: mode = "NotifyGrab"; break; case NotifyUngrab: mode = "NotifyUngrab"; break; case NotifyWhileGrabbed: mode = "NotifyWhileGrabbed"; break; - default: mode = dmode, sprintf (dmode, "%u", e->mode); break; + default: mode = dmode; sprintf (dmode, "%u", e->mode); break; } switch (e->detail) { @@ -265,7 +265,7 @@ do_FocusIn (XEvent *eventp) case NotifyGrab: mode = "NotifyGrab"; break; case NotifyUngrab: mode = "NotifyUngrab"; break; case NotifyWhileGrabbed: mode = "NotifyWhileGrabbed"; break; - default: mode = dmode, sprintf (dmode, "%u", e->mode); break; + default: mode = dmode; sprintf (dmode, "%u", e->mode); break; } switch (e->detail) { -- cgit v1.2.3