URIBeaconConfig::encodeURI: remove check for suffixlen == 0; un-necessary.

This commit is contained in:
Rohit Grover 2015-03-10 07:37:25 +00:00
parent 9342504e0e
commit 6f0d2168e6

View file

@ -428,10 +428,6 @@ class URIBeaconConfigService {
unsigned i;
for (i = 0; i < NUM_SUFFIXES; i++) {
size_t suffixLen = strlen(suffixes[i]);
if (suffixLen == 0) {
continue;
}
if (strncmp(uriDataIn, suffixes[i], suffixLen) == 0) {
uriDataOut[sizeofURIDataOut++] = i;
uriDataIn += suffixLen;