Skip to content

Commit

Permalink
Fix unused result
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur authored and crmarsh committed Nov 13, 2017
1 parent 0ea7ddb commit a1ab6c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/discord_register_linux.cpp
Expand Up @@ -85,7 +85,9 @@ extern "C" void Discord_Register(const char* applicationId, const char* command)
"xdg-mime default discord-%s.desktop x-scheme-handler/discord-%s",
applicationId,
applicationId);
system(xdgMimeCommand);
if (system(xdgMimeCommand) < 0) {
fprintf(stderr, "Failed to register mime handler\n");
}
}

extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char* steamId)
Expand Down

0 comments on commit a1ab6c9

Please sign in to comment.