Signed-off-by: Peter Hutterer <[email protected]>
---
tools/xsetwacom.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 436598e..7cc6847 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -957,11 +957,11 @@ static int is_modifier(const char* modifier)
while(m->name)
{
if (strcmp(modifier, m->converted) == 0)
- return 1;
+ break;
m++;
}
- return 0;
+ return (m->name != NULL);
}
static int special_map_keystrokes(Display *dpy, int argc, char **argv,
unsigned long *ndata, unsigned long* data);
--
1.7.3.5
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel