diff options
author | Hui Zhu <teawater@gmail.com> | 2011-05-14 03:37:18 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2011-05-14 03:37:18 +0000 |
commit | 093cee7d54d23c98e9efca824653d4e63f95b222 (patch) | |
tree | 25cae2f8451e8bd8186c410110694202d94e31ec /gdb/ui-file.c | |
parent | 25e334b48f9116ece66e00d307aa513188968f6c (diff) | |
download | binutils-gdb-093cee7d54d23c98e9efca824653d4e63f95b222.tar.gz |
2011-05-14 Hui Zhu <teawater@gmail.com>
* ui-file.c (stdio_file_write_async_safe): Add empty check for build.
Diffstat (limited to 'gdb/ui-file.c')
-rw-r--r-- | gdb/ui-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ui-file.c b/gdb/ui-file.c index 20b072e5917..6bb2342e746 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -580,7 +580,8 @@ stdio_file_write_async_safe (struct ui_file *file, return; } - write (stdio->fd, buf, length_buf); + if (write (stdio->fd, buf, length_buf)) + ; } static void |