From 18d7868b1b721d11916912fa398363f4b5e50128 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 12 Nov 2008 01:41:12 +0000 Subject: * read.c (read_a_source_file): Rearrange evaluation order when looking for '=' to avoid conditional on undefined contents of input_line_pointer[1]. --- gas/read.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gas/read.c') diff --git a/gas/read.c b/gas/read.c index 121c97a..1cf5e9a 100644 --- a/gas/read.c +++ b/gas/read.c @@ -791,10 +791,10 @@ read_a_source_file (char *name) /* Input_line_pointer->after ':'. */ SKIP_WHITESPACE (); } - else if (input_line_pointer[1] == '=' - && (c == '=' - || ((c == ' ' || c == '\t') - && input_line_pointer[2] == '='))) + else if ((c == '=' && input_line_pointer[1] == '=') + || ((c == ' ' || c == '\t') + && input_line_pointer[1] == '=' + && input_line_pointer[2] == '=')) { equals (s, -1); demand_empty_rest_of_line (); -- cgit v1.1