update_engine_client: Change bit-wise OR to logical OR for flags
bitwise OR doesn't really make sense on input boolean flags even though it will
work. It should be logical OR.
BUG=none
TEST=unittests
TEST=update_engine_client --update
Change-Id: If343302cf795ef7e576791dbeeed557f24f5df98
Reviewed-on: https://chromium-review.googlesource.com/1022973
Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
diff --git a/update_engine_client.cc b/update_engine_client.cc
index bb19632..c41916d 100644
--- a/update_engine_client.cc
+++ b/update_engine_client.cc
@@ -458,8 +458,8 @@
LOG(INFO) << "Target Channel (pending update): " << target_channel;
}
- bool do_update_request = FLAGS_check_for_update | FLAGS_update |
- !FLAGS_app_version.empty() |
+ bool do_update_request = FLAGS_check_for_update || FLAGS_update ||
+ !FLAGS_app_version.empty() ||
!FLAGS_omaha_url.empty();
if (FLAGS_update) FLAGS_follow = true;