• Fabiano Fidêncio's avatar
    tree: cleanup non-fatal errors in load_key_info() · 1c4deff7
    Fabiano Fidêncio authored
    There are errors which are not fatal and just ignored in load_keyinfo.
    However, as those have not been cleaned up, we could see messages like:
    (lt-osinfo-detect:20658): GLib-WARNING **: GError set over the top of a
    previous GError or uninitialized memory.
    This indicates a bug in someone's code. You must ensure an error is NULL
    before it's set.
    The overwriting error message was: Key file does not have key “boot.iso”
    in group “images-x86_64”
    
    In order to avoid this, let's just call g_clear_error() after situations
    where an error may have been set but it can just be ignored.
    Signed-off-by: 's avatarFabiano Fidêncio <fidencio@redhat.com>
    Reviewed-by: 's avatarChristophe Fergeau <cfergeau@redhat.com>
    1c4deff7
Name
Last commit
Last update
build-aux Loading commit data...
docs Loading commit data...
examples Loading commit data...
m4 Loading commit data...
osinfo Loading commit data...
po Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
AUTHORS.in Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
cfg.mk Loading commit data...
configure.ac Loading commit data...
libosinfo.spec.in Loading commit data...
maint.mk Loading commit data...
mingw-libosinfo.spec.in Loading commit data...
prepare-release.sh Loading commit data...