This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Commit 398f561
committed
findSubsystemObjectFromConfigurableElement: return nullptr if no object found
This function was improperly returning the latest candidate in case of failure
instead of returning a nullptr. This led the caller to use the returned
pointer even if it was not correct.
Signed-off-by: David Wagner <[email protected]>1 parent 3d38fee commit 398f561
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | 206 | | |
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
213 | | - | |
| 211 | + | |
| 212 | + | |
214 | 213 | | |
215 | 214 | | |
216 | | - | |
| 215 | + | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
| 219 | + | |
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
| |||
0 commit comments