From: bruceperens Date: Tue, 22 Apr 2014 01:09:25 +0000 (+0000) Subject: Fix compiler complaint. X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=71bc204f0961bf13be8bf0b0416128497e7499a1;p=freetel-svn-tracking.git Fix compiler complaint. git-svn-id: https://svn.code.sf.net/p/freetel/code@1540 01035d8c-6547-0410-b346-abe4f91aad63 --- 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;