[vala/0.36] vala: Initialize CodeContext.*_directories fields



commit 5a1408ccd2803820cbf2fa2197656b6e4f3aeb36
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Sep 19 16:38:34 2017 +0200

    vala: Initialize CodeContext.*_directories fields

 vala/valacodecontext.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 7815c0a..ba369a1 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -116,17 +116,17 @@ public class Vala.CodeContext {
        /**
         * List of directories where to find .vapi files.
         */
-       public string[] vapi_directories;
+       public string[] vapi_directories = {};
 
        /**
         * List of directories where to find .gir files.
         */
-       public string[] gir_directories;
+       public string[] gir_directories = {};
 
        /**
         * List of directories where to find .metadata files for .gir files.
         */
-       public string[] metadata_directories;
+       public string[] metadata_directories = {};
 
        /**
         * Produce debug information.
@@ -198,9 +198,9 @@ public class Vala.CodeContext {
 
        public bool run_output { get; set; }
 
-       public string[] gresources;
+       public string[] gresources = {};
 
-       public string[] gresources_directories;
+       public string[] gresources_directories = {};
 
        private List<SourceFile> source_files = new ArrayList<SourceFile> ();
        private List<string> c_source_files = new ArrayList<string> ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]