[ostree] core: Minor code cleanup
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Minor code cleanup
- Date: Fri, 25 Nov 2011 17:03:45 +0000 (UTC)
commit fd58e16a8d83dac5ebbffafc112b2d1786fd7823
Author: Colin Walters <walters verbum org>
Date: Fri Nov 25 12:01:05 2011 -0500
core: Minor code cleanup
src/libotutil/ot-gio-utils.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libotutil/ot-gio-utils.c b/src/libotutil/ot-gio-utils.c
index 2d55f98..28fd79c 100644
--- a/src/libotutil/ot-gio-utils.c
+++ b/src/libotutil/ot-gio-utils.c
@@ -81,15 +81,15 @@ ot_gfile_load_contents_utf8 (GFile *file,
}
if (contents_out)
- *contents_out = ret_contents;
- else
- g_free (ret_contents);
- ret_contents = NULL;
+ {
+ *contents_out = ret_contents;
+ ret_contents = NULL;
+ }
if (etag_out)
- *etag_out = ret_etag;
- else
- g_free (ret_etag);
- ret_etag = NULL;
+ {
+ *etag_out = ret_etag;
+ ret_etag = NULL;
+ }
ret = TRUE;
out:
g_free (ret_contents);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]