This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2080] dead code in libio/iogetwline.c?


------- Additional Comments From aj at suse dot de  2005-12-30 09:40 -------
libio/iogetline.c has the following code:

 	      if (extract_delim > 0)
		*ptr++ = c;
	      else if (extract_delim < 0)
		INTUSE(_IO_sputbackc) (fp, c);
	      if (extract_delim > 0)
		++len;
	      return ptr - buf;

I think the return is misplaced, iogetline was patch at one time to move the
return to the correct place.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2080

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]