diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-25 20:41:44 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-25 20:41:44 +0000 |
commit | dc11fe336bc652d04746767ce1cb5ba1882d57f0 (patch) | |
tree | 621520a6e37879002313f660866fee07695fbcc0 /mojo/examples/wget | |
parent | 1d1478990720cba5bec10936850af7f6a8204ca1 (diff) | |
download | chromium_src-dc11fe336bc652d04746767ce1cb5ba1882d57f0.zip chromium_src-dc11fe336bc652d04746767ce1cb5ba1882d57f0.tar.gz chromium_src-dc11fe336bc652d04746767ce1cb5ba1882d57f0.tar.bz2 |
Mojo: Set a default value for the --origin command line switch.
(Also fixes a regression in the wget app.)
Review URL: https://codereview.chromium.org/414633003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/wget')
-rw-r--r-- | mojo/examples/wget/wget.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/examples/wget/wget.cc b/mojo/examples/wget/wget.cc index 55a8cb8..507b3cb 100644 --- a/mojo/examples/wget/wget.cc +++ b/mojo/examples/wget/wget.cc @@ -51,7 +51,7 @@ class ResponsePrinter { MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE); } else if (result == MOJO_RESULT_OK) { - if (fwrite(buf, num_bytes, 1, stdout) != num_bytes) { + if (fwrite(buf, num_bytes, 1, stdout) != 1) { printf("\nUnexpected error writing to file\n"); break; } |