Remove encode_terminal_code UNINITs
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Oct 2021 00:52:04 +0000 (17:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Oct 2021 00:52:28 +0000 (17:52 -0700)
commit7e871dcd27bdb827573ca97e609632e178e76f64
tree3e78d1f11f9465f95962f067ae749ec69f1108e0
parent2a00634880adb20071686906ebb183326f2060e0
Remove encode_terminal_code UNINITs

* src/term.c (encode_terminal_code): Clarify by removing a couple
of UNINITs and testing the local variable ‘cmp’ instead of
retesting src->u.cmp.automatic.  This pacifies gcc 11.2.1
-Wanalyzer-null-dereference.
src/term.c