Skip to content

Commit

Permalink
[iscsi] Fix printing of non-existent strings in iBFT debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Oct 23, 2009
1 parent 2549f58 commit d000c6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/arch/i386/interface/pcbios/ibft.c
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit d000c6b

Please sign in to comment.