Code

Make test scripts executable.
[git.git] / builtin-for-each-ref.c
index 29f70aabc3f1df027f59dfdbac82e025653a8d87..0327f403060f80648aeed5a00f5aa1f06f403325 100644 (file)
@@ -297,7 +297,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;
        }