Chromium Code Reviews| Index: mojo/examples/wget/wget.cc |
| diff --git a/mojo/examples/wget/wget.cc b/mojo/examples/wget/wget.cc |
| index 8fabbe65977eb91df367d593152d33fc14a2ae8f..26520e72932535e2a866c5f03ef132e81adfd9dd 100644 |
| --- a/mojo/examples/wget/wget.cc |
| +++ b/mojo/examples/wget/wget.cc |
| @@ -93,7 +93,7 @@ class WGetApp : public ApplicationDelegate, public URLLoaderClient { |
| MOJO_HANDLE_SIGNAL_READABLE, |
| MOJO_DEADLINE_INDEFINITE); |
| } else if (result == MOJO_RESULT_OK) { |
| - fwrite(buf, num_bytes, 1, stdout); |
| + assert(num_bytes == fwrite(buf, num_bytes, 1, stdout)); |
|
darin (slow to review)
2014/06/28 05:29:00
doesn't assert(x) compile to nothing in release bu
|
| } else { |
| break; |
| } |