commit 895e138a5bcd298524c80112197799c3aae87c5e
parent 575011773b97937f498b09ec5c9ad29b9e07ea1d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 24 Jun 2020 20:02:44 +0200
remove unnecessary check and a whitespace fix
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -172,7 +172,7 @@ void *
erealloc(void *ptr, size_t size)
{
void *p;
-
+
if (!(p = realloc(ptr, size)))
err(1, "realloc");
return p;
@@ -1141,8 +1141,7 @@ draw(void)
if (panes[PaneItems].nrows &&
(row = pane_row_get(&panes[PaneItems], panes[PaneItems].pos))) {
item = (struct item *)row->data;
- if (item->url)
- statusbar_update(&statusbar, item->url);
+ statusbar_update(&statusbar, item->url);
} else {
statusbar_update(&statusbar, "");
}