[network-manager-libreswan] utils: fix initializing errsv variable in write_config_option_newline()



commit 048fff105e4f7edcc45b017ae7bf1fe377db0871
Author: Thomas Haller <thaller redhat com>
Date:   Fri Jun 24 18:41:10 2016 +0200

    utils: fix initializing errsv variable in write_config_option_newline()
    
    Fixes: f48cec9f5c6ce76ec1922a34414e469c4aa82762

 shared/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shared/utils.c b/shared/utils.c
index ca64dbc..f0bd85a 100644
--- a/shared/utils.c
+++ b/shared/utils.c
@@ -73,7 +73,7 @@ write_config_option_newline (int fd,
                        continue;
                }
                if (w == 0) {
-                       errno = EIO;
+                       errsv = EIO;
                        break;
                }
                errsv = errno;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]