From 71bc204f0961bf13be8bf0b0416128497e7499a1 Mon Sep 17 00:00:00 2001 From: bruceperens Date: Tue, 22 Apr 2014 01:09:25 +0000 Subject: [PATCH] Fix compiler complaint. git-svn-id: https://svn.code.sf.net/p/freetel/code@1540 01035d8c-6547-0410-b346-abe4f91aad63 --- freedv-server/source/platform/linux/evdev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freedv-server/source/platform/linux/evdev.cpp b/freedv-server/source/platform/linux/evdev.cpp index 39dafda6..89fc8284 100644 --- a/freedv-server/source/platform/linux/evdev.cpp +++ b/freedv-server/source/platform/linux/evdev.cpp @@ -80,7 +80,7 @@ namespace FreeDV { // Product field containing the same initial string, remove the // initial part. This gets rid of repeated manufacturer names. for ( unsigned int i = 1; i < length; i++ ) { - if ( string[i] == ' ' || string[i] == '\t' && string[i+1] != '\0' ) { + if ( (string[i] == ' ' || string[i] == '\t') && string[i+1] != '\0' ) { if ( strncmp(string, &string[i + 1], i + 1) == 0 ) { memmove(string, &string[i + 1], length - i); length = (length - i) - 1; -- 2.25.1