mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 17:12:54 +03:00
[iscsi] Fix printing of non-existent strings in iBFT debug messages
This commit is contained in:
@@ -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,
|
static const char * ibft_string ( struct ibft_string_block *strings,
|
||||||
struct ibft_string *string ) {
|
struct ibft_string *string ) {
|
||||||
return ( ( ( char * ) strings->table ) + string->offset );
|
return ( string->offset ?
|
||||||
|
( ( ( char * ) strings->table ) + string->offset ) : NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user