• Pietro Fezzardi's avatar
    lib/conf.c: fix ARG_NONE, factorize code · cd75d6f0
    Pietro Fezzardi authored
    Every case of the switch was colling the cfg_handler out of the
    switch construct, avery time with the same arguments.
    The only case not calling the config function was case ARG_NONE.
    But this doesn't make sense, because if a configuration option
    does not do anything, then it should not be there, even without
    arguments.
    So the call to config function is now made from every case, even
    ARG_NONE, then it should not stay inside the switch.
    cd75d6f0
conf.c 8.74 KB