fix(termkey): fix null pointer dereference (#31792)

This commit is contained in:
Gregory Anders
2024-12-30 16:36:47 -06:00
committed by GitHub
parent 259573db83
commit e9c077d197

View File

@ -528,7 +528,7 @@ TermKeyResult termkey_interpret_csi_param(TermKeyCsiParam param, int *paramp, in
if (c == ':') {
if (length == 0) {
*paramp = arg;
} else {
} else if (subparams != NULL) {
subparams[length - 1] = arg;
}
@ -543,7 +543,7 @@ TermKeyResult termkey_interpret_csi_param(TermKeyCsiParam param, int *paramp, in
if (length == 0) {
*paramp = arg;
} else {
} else if (subparams != NULL) {
subparams[length - 1] = arg;
}