[epiphany] window-commands: initialize string variables to NULL
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] window-commands: initialize string variables to NULL
- Date: Thu, 28 Jun 2012 10:49:04 +0000 (UTC)
commit c32e0e789aaf7b6d08f04a368e4322ca8214c891
Author: Xan Lopez <xan igalia com>
Date: Thu Jun 28 12:48:23 2012 +0200
window-commands: initialize string variables to NULL
This makes the about dialog not crash in WebKit2, since they are not
set to any value (yet) but are freed anyway.
src/window-commands.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index 3a0c43b..0f81cf2 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -1234,7 +1234,7 @@ window_cmd_help_about (GtkAction *action,
"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA")
};
- char *licence, *comments;
+ char *licence = NULL, *comments = NULL;
GKeyFile *key_file;
GError *error = NULL;
char **list, **authors, **contributors, **past_authors, **artists, **documenters;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]