I misremembered when I wrote this code: getline() returns -1 on EOF, not
zero, so the loop condition and the error check are both incorrect.
MFC after: 3 days
Fixes: 3cbdcabf714d ("ngctl: Modernize code somewhat")
Differential D55487
ngctl: Fix getline loop Authored by des on Tue, Feb 24, 2:14 PM. Tags None Referenced Files
Subscribers
Details I misremembered when I wrote this code: getline() returns -1 on EOF, not MFC after: 3 days
Diff Detail
|