Commit 9692f7f
committed
Guard against null pointers in actionBacktrace()
A warning was produced in GCC's LTO (GCC 13, Ubuntu 24.04) in
`-O2 -flto` mode:
```
In function ‘Process_isUserlandThread’,
inlined from ‘actionBacktrace’ at Action.c:621:9:
Process.h:287:15: error: null pointer dereference [-Werror=null-dereference]
287 | return this->isUserlandThread;
| ^
```
It's good to add a null pointer guard anyway.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>1 parent 25460fb commit 9692f7f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| |||
0 commit comments