remove some more of this ugliness

This commit is contained in:
tg
2010-01-29 09:34:31 +00:00
parent c67bed8790
commit 4eb17f8752
9 changed files with 109 additions and 84 deletions

View File

@ -26,7 +26,7 @@
#include <sys/file.h>
#endif
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.91 2010/01/25 16:12:55 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.92 2010/01/29 09:34:28 tg Exp $");
/*-
* MirOS: This is the default mapping type, and need not be specified.
@ -790,8 +790,10 @@ hist_count_lines(unsigned char *base, int bytes)
case sn4:
state = sline; break;
case sline:
if (*base == '\0')
lines++, state = shdr;
if (*base == '\0') {
lines++;
state = shdr;
}
}
base++;
}