[gedit] modelines: init hash tables as NULL
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] modelines: init hash tables as NULL
- Date: Fri, 9 Mar 2012 20:52:56 +0000 (UTC)
commit 663ec04855aa6acd5aa6f0aa08b5e686fb016628
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Mar 9 15:36:48 2012 +0100
modelines: init hash tables as NULL
we were lucky to not have a crash here.
plugins/modelines/modeline-parser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index a1097d3..099bd34 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -35,9 +35,9 @@
static gchar *modelines_data_dir;
/* Mappings: language name -> Gedit language ID */
-static GHashTable *vim_languages;
-static GHashTable *emacs_languages;
-static GHashTable *kate_languages;
+static GHashTable *vim_languages = NULL;
+static GHashTable *emacs_languages = NULL;
+static GHashTable *kate_languages = NULL;
typedef enum
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]