gbookmarkfile: Cleaner error handling code to pacify static analysis
authorColin Walters <walters@verbum.org>
Thu, 12 Jun 2014 16:53:18 +0000 (12:53 -0400)
committerColin Walters <walters@verbum.org>
Thu, 12 Jun 2014 17:25:06 +0000 (13:25 -0400)
commitf7d7e5ab2f3f9421f9df5d76487f37d4bdc78088
treeb8c61fe4a920893cf9476856148ad6a62fd44042
parentfcdd25a96eb33c389f381cacce42e6d4f2912c5c
gbookmarkfile: Cleaner error handling code to pacify static analysis

A static analyzer flagged the g_file_get_contents() call as not
checking its return value.  While the code here is actually correct,
it's verbose at best.

I think the "goto out + cleanup" code style is substantially cleaner,
less error prone, and easier to read.  It also will pacify the static
analyzer.

https://bugzilla.gnome.org/show_bug.cgi?id=731584
glib/gbookmarkfile.c