Merge branch 'js/pull-rebase'
[gitweb.git] / builtin-for-each-ref.c
index a5064441833ef1f69a245f2a9d11397b1f147caf..daf3a081650b6b39fe18f0fab61fa8b3f6c8be0f 100644 (file)
@@ -304,7 +304,7 @@ static const char *find_wholine(const char *who, int wholen, const char *buf, un
                if (!eol)
                        return "";
                eol++;
-               if (eol[1] == '\n')
+               if (*eol == '\n')
                        return ""; /* end of header */
                buf = eol;
        }