aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorRyan Farley <ryan.farley@gmx.com>2021-05-07 09:40:07 +0000
committerRyan Farley <ryan.farley@gmx.com>2021-05-07 09:40:07 +0000
commitdc9751cbfe6adc8a7e7a8e6a1c61452b65a84dd6 (patch)
treed917bb0ccef330a31e8a293f2bbddde2a6e5946b /terminal.c
parentenhanced bell configuration (diff)
style, consistent bool names, deprecate old config
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index f77a6d79..ab82b75b 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2641,7 +2641,7 @@ term_bell(struct terminal *term)
notify_notify(term, "Bell", "Bell in terminal");
}
- if (term->conf->bell.command.argv && (!term->kbd_focus || term->conf->bell.command_focused)) {
+ if ((term->conf->bell.command.argv != NULL) && (!term->kbd_focus || term->conf->bell.command_focused)) {
int devnull = open("/dev/null", O_RDONLY);
spawn(term->reaper, NULL, term->conf->bell.command.argv, devnull, -1, -1);