On Thu, 22 Jan 2015 21:45:02 -0500, Ted Unangst wrote: > On Thu, Jan 22, 2015 at 20:16, Ted Unangst wrote: > > > This diff is mechanical in nature. Later I will fix the bugs it reveals: > > > > - while ((status = load_env(envstr, file)) >= OK) { > > + while ((status = load_env(envstr, file)) >= 0) { > > switch (status) { > > - case ERR: > > + case -1: > > Delete this code. Not moving it because if it actually ran, it would > free the user we just got done building.
OK, load_env() returns -1 on EOF which is not actually an error. - todd