When entering a range for a nonexistent command ,p is dereferenced before the null check.
Move that check to before p is used.
BUG: 360418
dhaumann |
KTextEditor |
When entering a range for a nonexistent command ,p is dereferenced before the null check.
Move that check to before p is used.
BUG: 360418
Recompiled, no new warnings, doesn't segfault anymore.
Perhaps could use an automated test to ensure it doesn't come back, but I don't know how those are done here. Can someone explain?
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Sorry, I don't have commit access (this is only my second KDE patch).
Nothing to be sorry about, thanks for your fix!
Commited now.