diff options
author | Alan Modra <amodra@gmail.com> | 2021-08-06 19:46:22 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-08-06 23:06:53 +0930 |
commit | 7eb7e4cdcc625d9253fe8f3c42d3312c52f61d94 (patch) | |
tree | 89b18df0f8e0041f9df6bdf886757ea82baaedd4 /bfd | |
parent | 856c1545ce00d5c7d9368cdf5cb9dc7181c981e8 (diff) | |
download | gdb-7eb7e4cdcc625d9253fe8f3c42d3312c52f61d94.zip gdb-7eb7e4cdcc625d9253fe8f3c42d3312c52f61d94.tar.gz gdb-7eb7e4cdcc625d9253fe8f3c42d3312c52f61d94.tar.bz2 |
chew ubsan warning
It matters not at all if pc is incremented from its initial NULL
value, but avoid this silly runtime ubsan error.
* doc/chew.c (perform): Avoid incrementing NULL pc.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/doc/chew.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c index b3be7fa..9271cd1 100644 --- a/bfd/doc/chew.c +++ b/bfd/doc/chew.c @@ -1301,12 +1301,12 @@ perform (void) { if (warning) fprintf (stderr, "warning, %s is not recognised\n", next); - skip_past_newline (); + idx = skip_past_newline_1 (ptr, idx); } free (next); } else - skip_past_newline (); + idx = skip_past_newline_1 (ptr, idx); } } |