diff options
author | Tom de Vries <tdevries@suse.de> | 2024-01-10 11:27:34 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-01-10 11:27:34 +0100 |
commit | 94e037b46cecb9198efba5c07f205864d948458a (patch) | |
tree | 35cb61cf16015ec918a1339647dd9baea296019a /gprofng/src | |
parent | 42bd6b5fd4f9e41f99d80a8f2946926503299e5e (diff) | |
download | binutils-94e037b46cecb9198efba5c07f205864d948458a.zip binutils-94e037b46cecb9198efba5c07f205864d948458a.tar.gz binutils-94e037b46cecb9198efba5c07f205864d948458a.tar.bz2 |
[gdb] Make variable printed bool in info_checkpoints_command
While reading info_checkpoints_command, I noticed variable printed:
...
const fork_info *printed = NULL;
...
for (const fork_info &fi : fork_list)
{
if (requested > 0 && fi.num != requested)
continue;
printed = &fi;
...
}
if (printed == NULL)
...
has pointer type, but is just used as bool.
Make this explicit by changing the variable type to bool.
Tested on x86_64-linux.
Approved-By: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gprofng/src')
0 files changed, 0 insertions, 0 deletions