]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove a copy from c-exp.y:parse_number
authorTom Tromey <tom@tromey.com>
Fri, 12 Apr 2024 02:34:17 +0000 (20:34 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Apr 2024 22:10:31 +0000 (16:10 -0600)
commitb060213e0c9866469600b31ed570f483b3281c96
tree6919cd26603a1f6274095cada3e9556aec764fce
parent56f4dea207d690fff70a3ccb6fe10ebe1e4697c0
Remove a copy from c-exp.y:parse_number

parse_number copies its input string, but there is no need to do this.
This patch removes the copy.

Regression tested on x86-64 Fedora 38.

Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/c-exp.y