mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
29a5dfc7c0
2
popup.c
2
popup.c
@ -787,6 +787,8 @@ popup_editor(struct client *c, const char *buf, size_t len,
|
|||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return (-1);
|
return (-1);
|
||||||
f = fdopen(fd, "w");
|
f = fdopen(fd, "w");
|
||||||
|
if (f == NULL)
|
||||||
|
return (-1);
|
||||||
if (fwrite(buf, len, 1, f) != 1) {
|
if (fwrite(buf, len, 1, f) != 1) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return (-1);
|
return (-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user