diff options
author | Tom Tromey <tom@tromey.com> | 2024-04-16 13:12:28 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-04-21 12:33:56 -0600 |
commit | 6e4be957f79b67c117220b39a663c0319dec6b2d (patch) | |
tree | 13b60fe4be599e69f1dc2320fe3217af9d66a139 /gdb/source-cache.c | |
parent | e6375bc8ebbbc177c79f08e9616eb0b131229f65 (diff) | |
download | binutils-6e4be957f79b67c117220b39a663c0319dec6b2d.zip binutils-6e4be957f79b67c117220b39a663c0319dec6b2d.tar.gz binutils-6e4be957f79b67c117220b39a663c0319dec6b2d.tar.bz2 |
Remove a couple of VLAs
I found a couple of spots where VLAs are in use but where they can
easily be removed.
In one spot, adding 'const' is enough -- and is already done in
similar code elsewhere in the file.
In another spot, one of two arrays will be used, so making the buffer
large enough for both works.
Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/source-cache.c')
0 files changed, 0 insertions, 0 deletions