import: Protect against nul bytes in line-parsed files
commitc3afbcdfa7d40ca444b8ad9c070475e5f202c9ed
authorAndreas Ericsson <ae@op5.se>
Tue, 6 Oct 2009 09:33:25 +0000 (6 11:33 +0200)
committerAndreas Ericsson <ae@op5.se>
Tue, 6 Oct 2009 10:05:52 +0000 (6 12:05 +0200)
treee2256409620596bfef31dddeeea52abd6cccafbe
parent03da985e0b50f207952b0598aa1f5026e32d5c2f
import: Protect against nul bytes in line-parsed files

Without this patch the import program would stall indefinitely
if we encountered a file with nul bytes in it.

We also remove an impossible condition that we really shouldn't
test for.

Signed-off-by: Andreas Ericsson <ae@op5.se>
import.c