ndn-traffic-client: Bug fix so that client can process configuration
file parameters properly
Change-Id: Ic5efed3a44b7b92f7ccb535943f6ef5100aec55f
refs: #1431
diff --git a/src/ndn-traffic-client.cpp b/src/ndn-traffic-client.cpp
index 8979054..2b9f2f5 100644
--- a/src/ndn-traffic-client.cpp
+++ b/src/ndn-traffic-client.cpp
@@ -146,14 +146,14 @@
if (i == detail.length())
return false;
i++;
- while (
- std::isalnum(detail[i] || allowedCharacters.find(detail[i]) != std::string::npos)
- && i < detail.length())
+ while ((std::isalnum(detail[i]) ||
+ allowedCharacters.find(detail[i]) != std::string::npos) &&
+ i < detail.length())
{
value += detail[i];
i++;
}
- if(parameter == "" || value == "")
+ if (parameter == "" || value == "")
return false;
return true;
}