When ini_config_augment() is asked to load snippets from an empty directory, it returns with result_cfg set to NULL. It has this behavior even when base_cfg is not NULL.
ini_config_augment()
result_cfg
NULL
base_cfg
The documentation for ini_config_augment(), however, states that result_cfg will be set to the result of merging base_cfg with the snippets found in the specified directory. The behavior observed seems at odds with this description: it seems to merge something with nothing, and yield nothing (where did the something go?).
I believe this is caused by an early-exit from ini_aug_apply() (currently lines 682-688 of ini_augment.c) which should occur after the ini_config_copy() has taken place.
ini_aug_apply()
ini_config_copy()
Fields changed
rhbz: => todo
Metadata Update from @rharwood: - Issue set to the milestone: ding-libs 0.6.0
Fixed in master: 42cf1e0
Metadata Update from @mzidek: - Custom field component adjusted to None (was: INI Parser) - Custom field design_review reset (from 0) - Custom field mark reset (from 0) - Custom field patch reset (from 0) - Custom field review reset (from 0) - Custom field selected adjusted to None - Custom field sensitive reset (from 0) - Custom field testsupdated reset (from 0) - Custom field type adjusted to None (was: defect) - Custom field version adjusted to None (was: master) - Issue close_status updated to: None
Metadata Update from @mzidek: - Custom field design_review reset (from false) - Custom field mark reset (from false) - Custom field patch reset (from false) - Custom field review reset (from false) - Custom field sensitive reset (from false) - Custom field testsupdated reset (from false) - Issue assigned to cipherboy - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.