mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-19 07:46:24 -05:00
Fix CID#39903 Unchecked return value.
This commit is contained in:
parent
4d19ef668a
commit
dfc9a50fcf
12
bind.c
12
bind.c
@ -441,15 +441,17 @@ static unsigned int getckey( int mflag) {
|
|||||||
if( clexec) {
|
if( clexec) {
|
||||||
char tok[ NSTRING] ; /* command incoming */
|
char tok[ NSTRING] ; /* command incoming */
|
||||||
|
|
||||||
macarg( tok, sizeof tok) ; /* get the next token */
|
if( TRUE != macarg( tok, sizeof tok)) /* get the next token */
|
||||||
return stock(tok);
|
c = 0 ; /* return dummy key on failure */
|
||||||
}
|
else
|
||||||
|
c = stock( tok) ;
|
||||||
/* or the normal way */
|
} else { /* or the normal way */
|
||||||
if( mflag)
|
if( mflag)
|
||||||
c = get1key() ;
|
c = get1key() ;
|
||||||
else
|
else
|
||||||
c = getcmd() ;
|
c = getcmd() ;
|
||||||
|
}
|
||||||
|
|
||||||
return c ;
|
return c ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user