Commit d19fd2e
committed
Avoid NULL strcmp argument
It is possible for format to be NULL (as described in the function signature)
which causes a segmentation fault when it is passed to strcmp. This patch changes
the conditional to short-circuit if format is NULL and only call strcmp otherwise.1 parent ae48009 commit d19fd2e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2984 | 2984 | | |
2985 | 2985 | | |
2986 | 2986 | | |
2987 | | - | |
| 2987 | + | |
2988 | 2988 | | |
2989 | 2989 | | |
2990 | 2990 | | |
| |||
0 commit comments