Skip to content

Commit

Permalink
Fix build warning in device_command_screenshot_job.cc
Browse files Browse the repository at this point in the history
device_command_screenshot_job.cc:132:70: warning: 'result_code' may be used uninitialized in this function [-Wmaybe-uninitialized]

Review URL: https://codereview.chromium.org/1159163006

Cr-Commit-Position: refs/heads/master@{#333691}
  • Loading branch information
ds-hwang authored and Commit bot committed Jun 10, 2015
1 parent 46709b2 commit 78356a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void DeviceCommandScreenshotJob::OnSuccess() {
}

void DeviceCommandScreenshotJob::OnFailure(UploadJob::ErrorCode error_code) {
ResultCode result_code;
ResultCode result_code = FAILURE_CLIENT;
switch (error_code) {
case UploadJob::AUTHENTICATION_ERROR:
result_code = FAILURE_AUTHENTICATION;
Expand Down

0 comments on commit 78356a0

Please sign in to comment.