2011-05-14 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Sat, 14 May 2011 03:37:18 +0000 (03:37 +0000)
committerHui Zhu <teawater@gmail.com>
Sat, 14 May 2011 03:37:18 +0000 (03:37 +0000)
* ui-file.c (stdio_file_write_async_safe): Add empty check for build.

gdb/ChangeLog
gdb/ui-file.c

index 70d4f6c83ff752223d6b5db168ebf118194c8955..a2abac7fe10574017d659c097cb017f096dc1e80 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-14  Hui Zhu  <teawater@gmail.com>
+
+       * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
+
 2011-05-13  Doug Evans  <dje@google.com>
 
        Support $pdir and $sdir in libthread-db-search-path.
index 20b072e59174182f32be68141a6c43793f15f2e6..6bb2342e746cbd46432215edd06a983956bb1f12 100644 (file)
@@ -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