Skip to content

Commit

Permalink
Merge pull request #2135 from eneshecan/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays authored Apr 23, 2023
2 parents a9a2223 + f006020 commit 757f20f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/hyprland/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
memset(&ai_hints, 0, sizeof(struct addrinfo));
ai_hints.ai_family = AF_UNSPEC;
ai_hints.ai_socktype = SOCK_STREAM;
const auto SERVER = getaddrinfo("localhost", NULL, &ai_hints, &ai_res);

if (!SERVER) {
if (getaddrinfo("localhost", NULL, &ai_hints, &ai_res) != 0) {
spdlog::error("Hyprland IPC: Couldn't get host (2)");
return "";
}
Expand Down

0 comments on commit 757f20f

Please sign in to comment.