]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/log.c
Imported tableprinter module
[libucw.git] / ucw / log.c
index dc21038573e29eaf00162e72eab03277190019d9..6ac941064b1b80e91c466600dc05a0cbe8933441 100644 (file)
--- a/ucw/log.c
+++ b/ucw/log.c
@@ -34,7 +34,9 @@ static void NONRET do_die(void);
 static int default_log_handler(struct log_stream *ls UNUSED, struct log_msg *m)
 {
   // This is a completely bare version of the log-file module. Errors are ignored.
-  write(2, m->m, m->m_len);
+  if (write(2, m->m, m->m_len) < 0)
+    {
+    }
   return 0;
 }