chiark / gitweb /
util: rework load_env_file()
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Feb 2013 04:36:54 +0000 (05:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Feb 2013 04:36:54 +0000 (05:36 +0100)
commitdfbacb6fe56db4820137e4b668c361168fbfe5ff
treeb37f3e70ad4ba5068914b734f7a0268672a90a8f
parent91a6489d9949776605939fe65a2a6174ee719049
util: rework load_env_file()

Inner library calls should not invoke log_oom(), that's something for
main programs, not library calls.

Don't read through uninitialized memory if a file ends in a continuation
line.

Add comments for the non-obvious bits.

Don't choke on comment lines that are continuation lines.

Simplify some things.
src/shared/util.c