Commit 0726750
committed
entity: Use a temp variable in ipmi_entity_find_id
ipmi_entity_find_id() used the same id variable for searching and
returning the results. This might result in issues, and it's
certainly bad style. Use a temporary variable for searching
so the id field only gets modified if the results are found.
Reported-by: Alex <aruede@users.noreply.github.com>
Signed-off-by: Corey Minyard <corey@minyard.net>1 parent 30d1bb9 commit 0726750
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5592 | 5592 | | |
5593 | 5593 | | |
5594 | 5594 | | |
| 5595 | + | |
5595 | 5596 | | |
5596 | | - | |
5597 | | - | |
5598 | | - | |
5599 | | - | |
5600 | | - | |
| 5597 | + | |
| 5598 | + | |
| 5599 | + | |
| 5600 | + | |
| 5601 | + | |
5601 | 5602 | | |
5602 | | - | |
| 5603 | + | |
5603 | 5604 | | |
5604 | 5605 | | |
5605 | 5606 | | |
| |||
0 commit comments