mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Network detect (#26)
This commit is contained in:
@ -34,7 +34,7 @@ std::string getSocketPath() {
|
||||
}
|
||||
|
||||
int ipcOpenSocket(const std::string &socketPath) {
|
||||
struct sockaddr_un addr = {};
|
||||
struct sockaddr_un addr = {0};
|
||||
int socketfd;
|
||||
if ((socketfd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
|
||||
throw std::runtime_error("Unable to open Unix socket");
|
||||
|
Reference in New Issue
Block a user