diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2019-03-12 15:13:33 +0100 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2019-03-12 15:13:33 +0100 |
| commit | dd428301eb6f02542015121d7b08d9997f137e50 (patch) | |
| tree | 5530189f63510287d65268fc36025bdbc9414c00 /libnm/nm-vpn-service-plugin.c | |
| parent | bbae86d3d2997a853ca0365e8eb7a3ca7489ee09 (diff) | |
New upstream version 1.15.91
Diffstat (limited to 'libnm/nm-vpn-service-plugin.c')
| -rw-r--r-- | libnm/nm-vpn-service-plugin.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libnm/nm-vpn-service-plugin.c b/libnm/nm-vpn-service-plugin.c index ed9da7f7..a2728342 100644 --- a/libnm/nm-vpn-service-plugin.c +++ b/libnm/nm-vpn-service-plugin.c @@ -23,7 +23,6 @@ #include "nm-vpn-service-plugin.h" -#include <errno.h> #include <signal.h> #include <stdlib.h> @@ -808,7 +807,6 @@ nm_vpn_service_plugin_read_vpn_details (int fd, while (1) { ssize_t nr; - errno = 0; nr = read (fd, &c, 1); if (nr < 0) { if (errno == EAGAIN) { @@ -830,8 +828,8 @@ nm_vpn_service_plugin_read_vpn_details (int fd, /* done a line */ g_return_val_if_fail (hash, FALSE); g_hash_table_insert (hash, - g_string_free (key, FALSE), - g_string_free (val, FALSE)); + g_string_free (key, FALSE), + g_string_free (val, FALSE)); key = NULL; val = NULL; hash = NULL; @@ -839,7 +837,7 @@ nm_vpn_service_plugin_read_vpn_details (int fd, } if (strcmp (line->str, "DONE") == 0) { - /* finish marker */ + /* finish marker */ break; } else if (strncmp (line->str, DATA_KEY_TAG, strlen (DATA_KEY_TAG)) == 0) { if (key != NULL) { |