Commit 8da69f52 authored by sky@chromium.org's avatar sky@chromium.org

Fixes another compile error when warnings are set

Or it may be just for arm, not sure which setting is triggering the
compile error.

BUG=none
TEST=none
R=viettrungluu@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282196 0039d316-1c4b-4281-b951-d872f2087c98
parent 9b00523e
...@@ -93,7 +93,10 @@ class WGetApp : public ApplicationDelegate, public URLLoaderClient { ...@@ -93,7 +93,10 @@ class WGetApp : public ApplicationDelegate, public URLLoaderClient {
MOJO_HANDLE_SIGNAL_READABLE, MOJO_HANDLE_SIGNAL_READABLE,
MOJO_DEADLINE_INDEFINITE); MOJO_DEADLINE_INDEFINITE);
} else if (result == MOJO_RESULT_OK) { } else if (result == MOJO_RESULT_OK) {
fwrite(buf, num_bytes, 1, stdout); if (fwrite(buf, num_bytes, 1, stdout) != num_bytes) {
printf("\nUnexpected error writing to file\n");
break;
}
} else { } else {
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment