This repository was archived by the owner on Sep 27, 2024. It is now read-only.
Commit 88e9ca5
committed
Fix potential NULL pointer dereference
With the async behavior of Scanner (and its interactions in MainWindow),
it isn't obvious that Session can't be non-NULL here. Hence it is
probably better to move the session use into the if-guard.
Resolves: #262
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>1 parent 21d37fd commit 88e9ca5
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments