MFC r343339: Silence Clang Scan warning about use of unitialized variable.
The logic is changed to depend on actual "beep" parameters instead of on a
flag that may be set for invalid parameters.
An embedded literal escape character has been replaced by "\e", since it
could confuse terminals when displaying the affected line.