aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-02-18 18:24:05 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-02-18 18:24:05 +0000
commite17aafd170768308bb0ac5fa2d35795b68887c0a (patch)
treeb39757c8156dfbffc70bbf39a9c0a731e26c82f7 /gcc/gcc.c
parent04b03085740b48a3419346b7f52c2b799fc1b086 (diff)
downloadgcc-e17aafd170768308bb0ac5fa2d35795b68887c0a.zip
gcc-e17aafd170768308bb0ac5fa2d35795b68887c0a.tar.gz
gcc-e17aafd170768308bb0ac5fa2d35795b68887c0a.tar.bz2
* gcc.c (validate_switches): Don't scan past closing '}'.
From-SVN: r63046
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index b7aac2d..52ca424 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6871,7 +6871,8 @@ next_member:
else if (p[0] == 'W' && p[1] == '{')
p = validate_switches (p+2);
}
- if (*p) p++;
+ else
+ p++;
}
if (*p) p++;