aboutsummaryrefslogtreecommitdiff
path: root/gprofng/src
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-01-10 11:27:34 +0100
committerTom de Vries <tdevries@suse.de>2024-01-10 11:27:34 +0100
commit94e037b46cecb9198efba5c07f205864d948458a (patch)
tree35cb61cf16015ec918a1339647dd9baea296019a /gprofng/src
parent42bd6b5fd4f9e41f99d80a8f2946926503299e5e (diff)
downloadbinutils-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