mirror of
https://github.com/rfivet/uemacs.git
synced 2025-11-23 11:41:15 -05:00
Fix warning triggered by enforcing const on function names table.
This commit is contained in:
3
exec.c
3
exec.c
@@ -348,7 +348,6 @@ boolean gettokval( char *tok, int size) {
|
||||
|
||||
char *getnewtokval( void) {
|
||||
char *tmpbuf ;
|
||||
char *tmpval ;
|
||||
char *valbuf ;
|
||||
|
||||
/* grab token and advance past */
|
||||
@@ -357,7 +356,7 @@ char *getnewtokval( void) {
|
||||
return NULL ;
|
||||
|
||||
/* evaluate it */
|
||||
tmpval = getval( tmpbuf) ;
|
||||
const char *tmpval = getval( tmpbuf) ;
|
||||
valbuf = malloc( strlen( tmpval) + 1 ) ;
|
||||
if( valbuf != NULL)
|
||||
strcpy( valbuf, tmpval) ;
|
||||
|
||||
Reference in New Issue
Block a user