diff options
author | Nick Clifton <nickc@redhat.com> | 2016-02-19 16:15:48 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-02-19 16:15:48 +0000 |
commit | b37283a66b246609c74d75cb6757f5ecc2bfb8fa (patch) | |
tree | a79cd2a91b3a1e6dc0027e26de7d09568ea88db8 /gas/stabs.c | |
parent | Prevent a seg-fault in the linker when accessing a specially crafted, corrupt... (diff) | |
download | binutils-gdb-b37283a66b246609c74d75cb6757f5ecc2bfb8fa.tar.gz binutils-gdb-b37283a66b246609c74d75cb6757f5ecc2bfb8fa.tar.bz2 binutils-gdb-b37283a66b246609c74d75cb6757f5ecc2bfb8fa.zip |
Fix snafu - add missing const declaration to 'string' local variable in s_stab_generic.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index 6b739c7c95d..3b56a4872d1 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -181,7 +181,8 @@ s_stab_generic (int what, const char * stabstr_secname) { long longint; - char *string, *saved_string_obstack_end; + const char *string; + char *saved_string_obstack_end; int type; int other; int desc; |