diff options
Diffstat (limited to 'plugins/modelines/modeline-parser.c')
-rw-r--r-- | plugins/modelines/modeline-parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c index c1d96140..0ab477e7 100644 --- a/plugins/modelines/modeline-parser.c +++ b/plugins/modelines/modeline-parser.c @@ -82,7 +82,8 @@ has_option (ModelineOptions *options, void modeline_parser_init (const gchar *data_dir) { - modelines_data_dir = g_strdup (data_dir); + if (modelines_data_dir == NULL) + modelines_data_dir = g_strdup (data_dir); } void @@ -102,6 +103,7 @@ modeline_parser_shutdown () kate_languages = NULL; g_free (modelines_data_dir); + modelines_data_dir = NULL; } static GHashTable * |