[epiphany] Initialize variables that could be freed without being set
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Initialize variables that could be freed without being set
- Date: Sun, 19 Feb 2012 16:28:38 +0000 (UTC)
commit 2392a739d352ef3e8e54f9daf172fa634fbca4de
Author: Gustavo Noronha Silva <gns gnome org>
Date: Sun Feb 19 14:25:47 2012 -0200
Initialize variables that could be freed without being set
embed/ephy-web-app-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-web-app-utils.c b/embed/ephy-web-app-utils.c
index 83e8bc4..b9447c3 100644
--- a/embed/ephy-web-app-utils.c
+++ b/embed/ephy-web-app-utils.c
@@ -187,9 +187,9 @@ create_desktop_file (EphyWebView *view,
const char *title,
GdkPixbuf *icon)
{
- GKeyFile *file;
+ GKeyFile *file = NULL;
char *exec_string;
- char *data;
+ char *data = NULL;
char *filename, *apps_path, *desktop_file_path = NULL;
char *link_path;
char *wm_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]