Code

Only pass on properies with non-zero length names
authorJonas Fonseca <fonseca@diku.dk>
Wed, 24 May 2006 22:41:53 +0000 (00:41 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Wed, 24 May 2006 22:41:53 +0000 (00:41 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 4770e72a3d35f65e23adac1c41c2c1cb00011d64..f931e1d229c3e185caad4449bf5b66ed72462657 100644 (file)
--- 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))