mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix most warnings from Sparse
git-svn-id: svn://coreboot.org/openbios/openbios-devel@274 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -120,7 +120,7 @@ history_get( cmdline_info_t *ci, int n )
|
||||
|
||||
ci->buf[0] = 0;
|
||||
if( !p )
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
for( len=0; len <= ci->ncol && p[len] != '\n' && p[len] ; len++ )
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user