refactor: Initialize data

This commit is contained in:
Michael Carlberg
2016-12-15 09:29:14 +01:00
parent f9062d031c
commit a0d485f79d
28 changed files with 55 additions and 54 deletions

View File

@ -18,7 +18,7 @@ namespace socket_util {
* Constructor: establishing socket connection
*/
unix_connection::unix_connection(string&& path) : m_socketpath(path) {
struct sockaddr_un socket_addr;
struct sockaddr_un socket_addr {};
socket_addr.sun_family = AF_UNIX;
if ((m_fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {