mirror of
https://github.com/polybar/polybar.git
synced 2026-02-22 04:15:22 +00:00
refactor: Initialize data
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user