Commit 3de0892
committed
Fix null pointer exception
The logic in process_id() requires a reset of
the efs variable on every iteration through the
while ((fp = readdir(fdp)) loop.
Failure to do that can land us in a situation
where efs=1 from a previous iteration and
pn=1 from the current iteration.
Signed-off-by: Adrian Mardare <admardare@gmail.com>1 parent e6b1f8c commit 3de0892
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
| 1187 | + | |
1187 | 1188 | | |
1188 | 1189 | | |
1189 | 1190 | | |
| |||
0 commit comments