*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / tui / tui-win.c
index 0a49697d69e7a9ee944184eee57154837bcc945d..b48bf3ef59ff62bc108b738bc39cb3b61bc1d246 100644 (file)
@@ -107,7 +107,7 @@ static void parse_scrolling_args (char *,
 #endif
 
 /* Possible values for tui-border-kind variable.  */
-static const char *tui_border_kind_enums[] = {
+static const char *const tui_border_kind_enums[] = {
   "space",
   "ascii",
   "acs",
@@ -115,7 +115,7 @@ static const char *tui_border_kind_enums[] = {
 };
 
 /* Possible values for tui-border-mode and tui-active-border-mode.  */
-static const char *tui_border_mode_enums[] = {
+static const char *const tui_border_mode_enums[] = {
   "normal",
   "standout",
   "reverse",
@@ -1583,13 +1583,16 @@ parse_scrolling_args (char *arg,
              ;
 
          if (*buf_ptr != (char) 0)
-           wname = buf_ptr;
+           {
+             wname = buf_ptr;
+
+             /* Validate the window name.  */
+             for (i = 0; i < strlen (wname); i++)
+               wname[i] = toupper (wname[i]);
+           }
          else
            wname = "?";
          
-         /* Validate the window name.  */
-         for (i = 0; i < strlen (wname); i++)
-           wname[i] = toupper (wname[i]);
          *win_to_scroll = tui_partial_win_by_name (wname);
 
          if (*win_to_scroll == (struct tui_win_info *) NULL
This page took 0.024244 seconds and 4 git commands to generate.