aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-22 11:04:56 -0500
committerGitHub <noreply@github.com>2019-01-22 11:04:56 -0500
commit04aa41de340b82d4eccc5c0c86fa6f9c178b72d5 (patch)
tree75c61907f094838e23899231ec5ec955c530f692 /swaybar
parent71a37ad186ba3080338b2ecb5a3e640600aefc1f (diff)
parent0af5b26e41c5141d4094652133c230d76bf82e56 (diff)
Merge pull request #3496 from mstoeckl/fix-san
Fix dead stores found by scan-build
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/tray/item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c
index 39d83b23..a43bbf6f 100644
--- a/swaybar/tray/item.c
+++ b/swaybar/tray/item.c
@@ -334,7 +334,7 @@ static void handle_click(struct swaybar_sni *sni, int x, int y,
if (strncmp(method, "Scroll", strlen("Scroll")) == 0) {
char dir = method[strlen("Scroll")];
- char *orientation = (dir = 'U' || dir == 'D') ? "vertical" : "horizontal";
+ char *orientation = (dir == 'U' || dir == 'D') ? "vertical" : "horizontal";
int sign = (dir == 'U' || dir == 'L') ? -1 : 1;
sd_bus_call_method_async(sni->tray->bus, NULL, sni->service, sni->path,