summaryrefslogtreecommitdiff
path: root/gdb/ui-file.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2011-05-14 03:37:18 +0000
committerHui Zhu <teawater@gmail.com>2011-05-14 03:37:18 +0000
commit093cee7d54d23c98e9efca824653d4e63f95b222 (patch)
tree25cae2f8451e8bd8186c410110694202d94e31ec /gdb/ui-file.c
parent25e334b48f9116ece66e00d307aa513188968f6c (diff)
downloadbinutils-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.c3
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