No need to check it again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14413
while (True) {
n = get_char(fd, &ch);
if (n == 1 && !VG_(isspace)(ch)) break;
- if (n == 1 && ch == '\n' && lineno)
+ if (n == 1 && ch == '\n')
(*lineno)++;
if (n <= 0) return True;
}
while (True) {
n = get_char(fd, &ch);
if (n <= 0) return False; /* the next call will return True */
- if (ch == '\n' && lineno)
+ if (ch == '\n')
(*lineno)++;
if (ch == '\n') break;
if (i > 0 && i == nBuf-1) {
small for the line, it will be realloc'd until big enough (updating
*bufpp and *nBufp in the process). (It will bomb out if the size
gets ridiculous). Skips leading spaces on the line. Increments
- *lineno with the number of lines read if lineno is non-NULL. Returns
- True if no extra information line could be read. */
+ *lineno with the number of lines read. Returns True if no extra
+ information line could be read. */
extern Bool VG_(get_line) ( Int fd, HChar** bufpp, SizeT* nBufp, Int* lineno );