• Philip Withnall's avatar
    gvdb: Fix error handling in gvdb_table_new() · 614adf8a
    Philip Withnall authored
    The documentation was unclear about what error codes would be returned
    on attempting to open an empty or corrupt GVDB file. Previous versions
    of the documentation incorrectly said that corrupt GVDB files were
    considered equivalent to empty ones.
    A recent commit has clarified the documentation to include its error
    handling behaviour.
    Update the two users of GVDB within GLib, GResource and GSettingsSource,
    to follow this change, and add unit tests for them both.
    Other users of the GVDB copylib will need to update their copy and make
    appropriate changes if they have bugs in their handling of this
    situation. dconf is one example of this. GVDB should be updated from
    Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
gresource.c 43.6 KB