Fix compiler complaint.
authorbruceperens <bruceperens@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 22 Apr 2014 01:09:25 +0000 (01:09 +0000)
committerbruceperens <bruceperens@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 22 Apr 2014 01:09:25 +0000 (01:09 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1540 01035d8c-6547-0410-b346-abe4f91aad63

freedv-server/source/platform/linux/evdev.cpp

index 39dafda678c6e23bb289899a0029c9b3c10fcc9c..89fc8284a8c180068ae9654c849648afdd034642 100644 (file)
@@ -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;