aboutsummaryrefslogtreecommitdiff
path: root/i3-nagbar
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-03-29 16:53:14 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-03-29 16:53:14 +0200
commit93adcf8bdcc09ab78ed265b3392900be552596fa (patch)
tree99a65e2ffe66c786bbf7e54b88f6b4f1cca10074 /i3-nagbar
parent0391ac2e69bea4709eaf20c20e517619f0969978 (diff)
parent42515308e72e4ea6f6b49508c1ba286263dded64 (diff)
downloadi3-93adcf8bdcc09ab78ed265b3392900be552596fa.tar.gz
i3-93adcf8bdcc09ab78ed265b3392900be552596fa.zip
Merge pull request #1575 from hwangcc23/next
Fix warnings
Diffstat (limited to 'i3-nagbar')
-rw-r--r--i3-nagbar/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/i3-nagbar/main.c b/i3-nagbar/main.c
index 805066f8..bf6d1cca 100644
--- a/i3-nagbar/main.c
+++ b/i3-nagbar/main.c
@@ -164,7 +164,9 @@ static void handle_button_release(xcb_connection_t *conn, xcb_button_release_eve
char *link_path;
char *exe_path = get_exe_path(argv0);
sasprintf(&link_path, "%s.nagbar_cmd", script_path);
- symlink(exe_path, link_path);
+ if (symlink(exe_path, link_path) == -1) {
+ err(EXIT_FAILURE, "Failed to symlink %s to %s", link_path, exe_path);
+ }
char *terminal_cmd;
sasprintf(&terminal_cmd, "i3-sensible-terminal -e %s", link_path);