fix initialization of reserved I/O names vector
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 28 Sep 2015 21:52:27 +0000 (17:52 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 28 Sep 2015 21:52:27 +0000 (17:52 -0400)
libs/ardour/globals.cc

index 9f512c1ec0d70c8f2682c058aca4b5d01e22361b..09043430a366f12600fc6b10277579c59c476ef1 100644 (file)
@@ -515,8 +515,8 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir
           surface support that would list their port names, we do have to
           list them here.
        */
-
-       char const * reserved[] = {
+       
+       char const * const reserved[] = {
                _("Monitor"),
                _("Master"),
                _("Control"),
@@ -525,7 +525,9 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir
                0
        };
 
-       reserved_io_names = I18N (reserved);
+       for (int n = 0; reserved[n]; ++n) {
+               reserved_io_names.push_back (reserved[n]);
+       }
        
        libardour_initialized = true;