From edd47ff90a923deef6888db5c0b11a46bd58c71b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dariusz=20Knoci=C5=84ski?= <dknoto@gmail.com>
Date: Fri, 18 Dec 2015 22:31:30 +0100
Subject: [PATCH] usb_devlist2h.awk: added workaround due to an error in the
operation of the logical operators '||' and '&&' in awk-4.1.3.
---
src/apps/devices/usb_devlist2h.awk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/apps/devices/usb_devlist2h.awk b/src/apps/devices/usb_devlist2h.awk
index 3bd7f80..47fd2cb 100644
a
|
b
|
NR == 1 {
|
56 | 56 | |
57 | 57 | next |
58 | 58 | } |
59 | | NF > 0 && $1 == "vendor" { |
| 59 | $1 == "vendor" { |
60 | 60 | nvendors++ |
61 | 61 | |
62 | 62 | vendorindex[$2] = nvendors; # record index for this name, for later. |
… |
… |
NF > 0 && $1 == "vendor" {
|
101 | 101 | |
102 | 102 | next |
103 | 103 | } |
104 | | NF > 0 && $1 == "product" { |
| 104 | $1 == "product" { |
105 | 105 | nproducts++ |
106 | 106 | |
107 | 107 | products[nproducts, 1] = $2; # vendor name |