• Max Kellermann's avatar
    conf: turn config_get_path() into config_dup_path() · 8e5f9c81
    Max Kellermann authored
    config_get_path() was somewhat flawed, because it pretended to be a
    function, when it really had a side effect.  The second flaw was that
    it did not return the parser error, instead it aborted the whole
    process, which is bad style.  The new function returns a duplicated
    (modified) string that must be freed by the caller, and returns a
    GError on failure.
    8e5f9c81
log.c 6.88 KB