1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 07:16:23 -05:00

Fix CID#39903 Unchecked return value.

This commit is contained in:
Renaud 2015-07-17 10:01:17 +08:00
parent 4d19ef668a
commit dfc9a50fcf

12
bind.c
View File

@ -441,15 +441,17 @@ static unsigned int getckey( int mflag) {
if( clexec) {
char tok[ NSTRING] ; /* command incoming */
macarg( tok, sizeof tok) ; /* get the next token */
return stock(tok);
}
/* or the normal way */
if( TRUE != macarg( tok, sizeof tok)) /* get the next token */
c = 0 ; /* return dummy key on failure */
else
c = stock( tok) ;
} else { /* or the normal way */
if( mflag)
c = get1key() ;
else
c = getcmd() ;
}
return c ;
}