summaryrefslogtreecommitdiff
path: root/libpipe/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpipe/pipe.c')
-rw-r--r--libpipe/pipe.c2
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)