diff options
-rw-r--r-- | libpipe/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpipe/pipe.c b/libpipe/pipe.c index f9300e7c..56c339dd 100644 --- a/libpipe/pipe.c +++ b/libpipe/pipe.c @@ -358,7 +358,7 @@ pipe_send (struct pipe *pipe, int noblock, void *source, } } - if (!err) + if (!err && data_len > 0) err = (*pipe->class->write)(pipe->queue, source, data, data_len, amount); if (!err) |