commit be1f735bd609b6febbee83a3d5907b7f6d973d86
parent 331e8705a41a6e858e4b7474c77e8016999a3cbe
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 14 Jul 2020 21:34:22 +0200
item_row_get: check f->fp just in case
f->fp = NULL should never happen here though.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1396,7 +1396,7 @@ item_row_get(struct pane *p, off_t pos)
item = (struct item *)itemrow->data;
f = curfeed;
- if (f && f->path && !item->line) {
+ if (f && f->path && f->fp && !item->line) {
if (fseek(f->fp, item->offset, SEEK_SET))
err(1, "fseek: %s", f->path);
linelen = getline(&line, &linesize, f->fp);