summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-16 06:57:13 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-16 06:57:13 +0000
commitabdeb5d2c34143de67dda6783b4552bfecbcda1e (patch)
tree42b7aaf0244cccc4d500caf1fa86ff8953a1e228 /third_party
parentb50da392e2eefa3f24fb499fe612829722e0071e (diff)
downloadchromium_src-abdeb5d2c34143de67dda6783b4552bfecbcda1e.zip
chromium_src-abdeb5d2c34143de67dda6783b4552bfecbcda1e.tar.gz
chromium_src-abdeb5d2c34143de67dda6783b4552bfecbcda1e.tar.bz2
Fix new -Wnull-conversion violations detected by a newer clang.
No intended behavior change. BUG=none TEST=none TBR=hans Review URL: https://chromiumcodereview.appspot.com/10383207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
index 869763f..bf868dc 100644
--- a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
+++ b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
@@ -289,7 +289,7 @@ bool SuddenMotionSensor::Init() {
size_t local_model_size = sizeof(local_model);
int params[2] = { CTL_HW, HW_MODEL };
if (sysctl(params, 2, local_model, &local_model_size, NULL, 0) != 0)
- return NULL;
+ return false;
const SensorDescriptor* sensor_candidate = NULL;