fix failure of getdelim to set stream orientation on error
authorRich Felker <dalias@aerifal.cx>
Sun, 16 Sep 2018 12:40:46 +0000 (08:40 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 16 Sep 2018 12:46:26 +0000 (08:46 -0400)
commit5cd309f0cc3c92f3fabbaa499652a8329137c4de
treed1f0e4855e735f54edb1fbba018c35b59fd4fa13
parent5994de4e02a05c19a6bddadcfb687ab2e7511bd6
fix failure of getdelim to set stream orientation on error

if EINVAL or ENOMEM happened before the first getc_unlocked, it was
possible that the stream orientation had not yet been set.
src/stdio/getdelim.c