line-reader: Fix null derefe in line_reader_for_fd() with null encoding.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 4 Apr 2014 05:12:49 +0000 (22:12 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 4 Apr 2014 05:12:49 +0000 (22:12 -0700)
This function is supposed to treat NULL and "Auto" the same way, but it
tried to xstrdup NULL, which doesn't work.

This is easy to reproduce by attempting to use File|Import Data to read
a short file whose contents are all ASCII.

Bug #41971.
Reported by Mindaugus.


No differences found