[gnome-software/wip/rancell/reviews] Fix uninitialized autofree variables
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/reviews] Fix uninitialized autofree variables
- Date: Tue, 1 Mar 2016 08:59:45 +0000 (UTC)
commit c5f2f25293e4c0ce958d67406cbb5258814a86ac
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Mar 1 21:59:28 2016 +1300
Fix uninitialized autofree variables
src/plugins/gs-plugin-ubuntu-reviews.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index b205f16..f64bb61 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -1093,7 +1093,7 @@ set_review_usefulness (GsPlugin *plugin,
gboolean is_useful,
GError **error)
{
- g_autofree gchar *path;
+ g_autofree gchar *path = NULL;
if (!sign_into_ubuntu (plugin, error))
return FALSE;
@@ -1110,7 +1110,7 @@ report_review (GsPlugin *plugin,
const gchar *text,
GError **error)
{
- g_autofree gchar *path;
+ g_autofree gchar *path = NULL;
if (!sign_into_ubuntu (plugin, error))
return FALSE;
@@ -1126,7 +1126,7 @@ remove_review (GsPlugin *plugin,
const gchar *review_id,
GError **error)
{
- g_autofree gchar *path;
+ g_autofree gchar *path = NULL;
if (!sign_into_ubuntu (plugin, error))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]