wsdd2: fix infinite loop when BI_PARM is never set
authorSyrone Wong <wong.syrone@gmail.com>
Tue, 5 May 2020 23:49:04 +0000 (07:49 +0800)
committerSyrone Wong <wong.syrone@gmail.com>
Tue, 5 May 2020 23:59:52 +0000 (07:59 +0800)
commit48d9521ecd75e6651d750642ae1d6da3ada2bc52
tree2cae43cac46b254edf00c6189006bb126797c9ad
parent76f5cf1a28f645680af0dfc2a83202e494f94076
wsdd2: fix infinite loop when BI_PARM is never set

If BI_PARM is never set, it's "" and causes
infinite loop (before my PR sent upstream) or
error out (after my PR sent upstream).
Append -b option only if it's valid.

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
net/wsdd2/files/wsdd2.init