Changeset 0c01270 in mainline for uspace/lib/conf/src/configuration.c


Ignore:
Timestamp:
2020-07-05T21:00:33Z (4 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
0f75a63
Parents:
a81a950d
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-05-08 11:02:56)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-07-05 21:00:33)
Message:

libconf: Fix iterator behavior, fix config error notification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/conf/src/configuration.c

    ra81a950d r0c01270  
    4343                const char *string = ini_item_iterator_value(it);
    4444                const size_t lineno = ini_item_iterator_lineno(it);
    45                 has_error = has_error ||
    46                     config_item->parse(string, field_dst, parse, lineno);
     45                bool success = config_item->parse(string, field_dst, parse, lineno);
     46                has_error = has_error || !success;
    4747        }
    4848
     
    104104        }
    105105
    106         return has_error ? EOK : EINVAL;
     106        return has_error ? EINVAL : EOK;
    107107}
    108108
Note: See TracChangeset for help on using the changeset viewer.