fix COV (REVERSE_NULL)

This commit is contained in:
Jeffrey Crowell 2015-07-30 23:18:28 -04:00
parent 6007ca4fde
commit 05638b4cfe

View File

@ -91,7 +91,7 @@ static int get_piece (const char *p, char *chr) {
const char *q = p;
if (!p) return 0;
while (p && *p && *p != '\n' && !is_ansi_seq(p)) p++;
if (p && chr) *chr = *p;
if (chr) *chr = *p;
return p - q;
}