[gnome-settings-daemon] wacom: Fix compilation warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Fix compilation warning
- Date: Mon, 15 Jul 2013 16:50:53 +0000 (UTC)
commit b821ea1c490d76aee6a3eb19acb4d134784ca1b2
Author: Przemo Firszt <przemo firszt eu>
Date: Tue Jun 11 20:59:43 2013 +0100
wacom: Fix compilation warning
About "image" which might be used uninitialised
https://bugzilla.gnome.org/show_bug.cgi?id=671072
plugins/wacom/gsd-wacom-oled-helper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-oled-helper.c b/plugins/wacom/gsd-wacom-oled-helper.c
index ea15264..9fda081 100644
--- a/plugins/wacom/gsd-wacom-oled-helper.c
+++ b/plugins/wacom/gsd-wacom-oled-helper.c
@@ -59,12 +59,12 @@ gsd_wacom_oled_helper_write (const gchar *filename, gchar *buffer, GError **erro
if (retval != length) {
ret = FALSE;
g_set_error (error, 1, 0, "writing to %s failed", filename);
- goto out;
}
+
+ g_free (image);
out:
if (fd >= 0)
close (fd);
- g_free (image);
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]