Skip to content
Snippets Groups Projects
Commit 0b61127f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Set defaults for XTerm graphics query before checking

Fixes potential read of uninitialized data.
Found by scan-build
parent c08f1613
No related branches found
No related tags found
No related merge requests found
......@@ -2758,6 +2758,8 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
break;
case 'S': // XTerm graphics query
if (seq->param_str[0] == '?' && parse_parameters(seq)) {
seq_default(seq, 0, 0);
seq_default(seq, 1, 0);
if (seq->param_int[0] == 2 && seq->param_int[1] == 1) {
struct text_info ti;
int vmode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment