david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[iscsi] Fix printing of non-existent strings in iBFT debug messages

This commit is contained in:
Michael Brown 2009-10-23 21:33:48 +01:00
parent 2549f58694
commit d000c6b8c7
1 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,8 @@ static int ibft_set_string_option ( struct ibft_string_block *strings,
*/
static const char * ibft_string ( struct ibft_string_block *strings,
struct ibft_string *string ) {
return ( ( ( char * ) strings->table ) + string->offset );
return ( string->offset ?
( ( ( char * ) strings->table ) + string->offset ) : NULL );
}
/**