diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-01-22 10:07:38 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-01-22 10:07:38 -0500 |
| commit | 519f7109f03f19e007a5317c51ea0da120e6113e (patch) | |
| tree | 75c61907f094838e23899231ec5ec955c530f692 /client | |
| parent | ff9e4088fe9ab807a7c8e5712be469aeb0394aec (diff) | |
Fix dead stores found by scan-build
In addition to removing unused code, two minor problems are fixed:
(1) `resize set` and `resize adjust` did not error when given
too many arguments.
(2) `orientation` was incorrectly overridden to be 'U' for
scroll events in the swaybar tray `handle_click` function.
Diffstat (limited to 'client')
| -rw-r--r-- | client/pool-buffer.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/client/pool-buffer.c b/client/pool-buffer.c index 588bd06c..836c6b13 100644 --- a/client/pool-buffer.c +++ b/client/pool-buffer.c @@ -85,7 +85,6 @@ static struct pool_buffer *create_buffer(struct wl_shm *shm, close(fd); unlink(name); free(name); - fd = -1; buf->size = size; buf->width = width; |
