diff options
Diffstat (limited to 'popup.c')
-rw-r--r-- | popup.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -788,6 +788,8 @@ popup_editor(struct client *c, const char *buf, size_t len, if (fd == -1) return (-1); f = fdopen(fd, "w"); + if (f == NULL) + return (-1); if (fwrite(buf, len, 1, f) != 1) { fclose(f); return (-1); |