check row for NULL in feed_open_selected - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
 (HTM) git clone git://git.codemadness.org/sfeed_curses
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit edcbb556469e5381e61f0d733b95b472d55ecf44
 (DIR) parent c5c1f1c85a2a0fe44eab2786255dab73a2ca448a
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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(-)
       ---
 (DIR) 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)