diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-11-12 01:41:12 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2008-11-12 01:41:12 +0000 |
commit | 18d7868b1b721d11916912fa398363f4b5e50128 (patch) | |
tree | 873c2f679c2293ec5830eda36621f706fa642bbc /gas/read.c | |
parent | de04a2489514e54287a18fecbad28efa74eb49f3 (diff) | |
download | gdb-18d7868b1b721d11916912fa398363f4b5e50128.zip gdb-18d7868b1b721d11916912fa398363f4b5e50128.tar.gz gdb-18d7868b1b721d11916912fa398363f4b5e50128.tar.bz2 |
* read.c (read_a_source_file): Rearrange evaluation order when
looking for '=' to avoid conditional on undefined contents of
input_line_pointer[1].
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 (); |