Initialize mask

This commit is contained in:
Arun Prakash Jana 2020-01-20 23:33:57 +05:30
parent 9b45b05746
commit abd1df8770
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -1209,8 +1209,7 @@ static bool initcurses(mmask_t *oldmask)
#if NCURSES_MOUSE_VERSION <= 1 #if NCURSES_MOUSE_VERSION <= 1
mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED, oldmask); mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED, oldmask);
#else #else
mousemask(BUTTON1_PRESSED | BUTTON4_PRESSED | BUTTON5_PRESSED, mousemask(BUTTON1_PRESSED | BUTTON4_PRESSED | BUTTON5_PRESSED, oldmask);
oldmask);
#endif #endif
mouseinterval(0); mouseinterval(0);
curs_set(FALSE); /* Hide cursor */ curs_set(FALSE); /* Hide cursor */
@ -5868,7 +5867,7 @@ static void cleanup(void)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
mmask_t mask; mmask_t mask = 0;
char *arg = NULL; char *arg = NULL;
char *session = NULL; char *session = NULL;
int opt; int opt;