From: Jonas Fonseca Date: Wed, 24 May 2006 22:41:53 +0000 (+0200) Subject: Only pass on properies with non-zero length names X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d82d824733b042765bc00b30c8fd6b3fd67564a;p=tig.git Only pass on properies with non-zero length names --- diff --git a/tig.c b/tig.c index 4770e72..f931e1d 100644 --- a/tig.c +++ b/tig.c @@ -1621,8 +1621,8 @@ pager_enter(struct view *view, struct line *line) scroll_view(view, REQ_SCROLL_LINE_DOWN); /* FIXME: A minor workaround. Scrolling the view will call report("") - * but if we are scolling a non-current view this won't properly update - * the view title. */ + * but if we are scrolling a non-current view this won't properly + * update the view title. */ if (split) update_view_title(view); @@ -2426,7 +2426,8 @@ read_properties(const char *cmd, int separator, valuelen = 0; } - state = read_property(name, namelen, value, valuelen); + if (namelen) + state = read_property(name, namelen, value, valuelen); } if (state != ERR && ferror(pipe))