about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--elf/dl-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-write.c b/elf/dl-write.c
index 7350aff003..9b741c8a8f 100644
--- a/elf/dl-write.c
+++ b/elf/dl-write.c
@@ -41,7 +41,7 @@ _dl_write (int fd, const void *buffer, size_t length)
   else
     {
       __rtld_lock_lock_recursive (GL(dl_load_lock));
-      __writev (fd, &iov, 1);
+      ret = __writev (fd, &iov, 1);
       if (ret < 0)
         ret = -errno;
       __rtld_lock_unlock_recursive (GL(dl_load_lock));