summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-22 16:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-22 16:01:19 +0100
commit03054598df77da74499babd4d4cd2f3575c81d22 (patch)
tree164807efa71b88c0dd85360503a763fa3cb50afa /file.c
parent324f87cf142fb1b7ed8cd738316bdb3f6fa7c1df (diff)
parent72d905f32c53ea1304b4b3206383502a23cfc0fd (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 974c8a37..b2f155fe 100644
--- a/file.c
+++ b/file.c
@@ -555,7 +555,7 @@ file_write_open(struct client_files *files, struct tmuxpeer *peer,
log_debug("open write file %d %s", msg->stream, path);
find.stream = msg->stream;
- if ((cf = RB_FIND(client_files, files, &find)) != NULL) {
+ if (RB_FIND(client_files, files, &find) != NULL) {
error = EBADF;
goto reply;
}
@@ -714,7 +714,7 @@ file_read_open(struct client_files *files, struct tmuxpeer *peer,
log_debug("open read file %d %s", msg->stream, path);
find.stream = msg->stream;
- if ((cf = RB_FIND(client_files, files, &find)) != NULL) {
+ if (RB_FIND(client_files, files, &find) != NULL) {
error = EBADF;
goto reply;
}