Fix usage of std::string::find() in cGobiQMICore::GetImageInfo().
The return value of std::string::find() should be checked against
std::string::npos to determine if the substring isn't found.
The issue is reported by the following compiler warning:
../Shared/GobiQMICoreImg2k.cpp:441:35: error: comparison of unsigned
expression < 0 is always false [-Werror,-Wtautological-compare]
if (tmpPath.find( imageStore ) < 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
BUG=chromium:690629
TEST=Run unit tests and network3g tests with Gobi3k modem.
Change-Id: Id620e5539cbec2fbb93e095198c8f98a8dad6cef
Reviewed-on: https://chromium-review.googlesource.com/440372
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed