Initialise GError* to nullptr
commit0174226ddcd3f33983e567e5abfe96bf9216b72d
authorOlly Betts <olly@survex.com>
Tue, 17 Oct 2023 02:31:13 +0000 (17 15:31 +1300)
committerOlly Betts <olly@survex.com>
Tue, 17 Oct 2023 02:31:13 +0000 (17 15:31 +1300)
tree3ddf44d176012fea0c7179cb46942bcca6e815bb
parent408e46c13b150c2b315ba6a7fcb1a12bd80f040d
Initialise GError* to nullptr

The "Rules for use of GError" in the GLIB docs say:

    A GError* must be initialized to NULL before passing its address to
    a function that can report errors.

https://docs.gtk.org/glib/error-reporting.html#rules-for-use-of-gerror
xapian-applications/omega/handler_libgepub.cc
xapian-applications/omega/handler_poppler.cc