diff options
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 01e9daead..7970e4b63 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -1141,7 +1141,5 @@ fhandler_socket::set_close_on_exec (int val) void fhandler_socket::set_sun_path (const char *path) { - if (sun_path) - cfree (sun_path); - sun_path = cstrdup (path); + sun_path = path ? cstrdup (path) : NULL; } |