Introduction
Introduction Statistics Contact Development Disclaimer Help
check row for NULL in feed_open_selected - sfeed_curses - sfeed curses UI (now …
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit edcbb556469e5381e61f0d733b95b472d55ecf44
parent c5c1f1c85a2a0fe44eab2786255dab73a2ca448a
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 29 Mar 2021 20:00:08 +0200
check row for NULL in feed_open_selected
This condition (being NULL) cannot happen here though.
Diffstat:
M sfeed_curses.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1512,8 +1512,9 @@ feed_open_selected(struct pane *p)
struct feed *f;
struct row *row;
- row = pane_row_get(p, p->pos);
- f = (struct feed *)row->data;
+ if (!(row = pane_row_get(p, p->pos)))
+ return;
+ f = row->data;
feeds_set(f);
urls_read();
if (f->fp)
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.