summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
Diffstat (limited to 'libpipe')
-rw-r--r--libpipe/pipe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpipe/pipe.c b/libpipe/pipe.c
index c3d2a28b..0b539218 100644
--- a/libpipe/pipe.c
+++ b/libpipe/pipe.c
@@ -319,7 +319,10 @@ pipe_send (struct pipe *pipe, int noblock, void *source,
/* Nothing to do. */
if (data_len == 0 && control_len == 0 && num_ports == 0)
- return 0;
+ {
+ *amount = 0;
+ return 0;
+ }
err = pipe_wait_writable (pipe, noblock);
if (err)