From: ayin Date: Wed, 6 Feb 2008 12:05:35 +0000 (+0000) Subject: Move a variable to the scope where it is used. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=b135a8f15fe8bf562e0202e4a1e4e796e2eb1b20;p=dana%2Furxvt.git Move a variable to the scope where it is used. --- diff --git a/src/main.C b/src/main.C index 4a820884..9effb70b 100644 --- a/src/main.C +++ b/src/main.C @@ -803,7 +803,6 @@ rxvt_term::set_window_color (int idx, const char *color) { #ifdef XTERM_COLOR_CHANGE rxvt_color xcol; - int i; if (color == NULL || *color == '\0') return; @@ -815,7 +814,7 @@ rxvt_term::set_window_color (int idx, const char *color) /* handle color aliases */ if (isdigit (*color)) { - i = atoi (color); + int i = atoi (color); if (i >= 8 && i <= 15) {