http://git.etherboot.org
/
people
/
pcmattman
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2549f58
)
[iscsi] Fix printing of non-existent strings in iBFT debug messages
author
Michael Brown
<mcb30@etherboot.org>
Fri, 23 Oct 2009 20:33:48 +0000
(21:33 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Fri, 23 Oct 2009 20:33:48 +0000
(21:33 +0100)
src/arch/i386/interface/pcbios/ibft.c
patch
|
blob
|
history
diff --git
a/src/arch/i386/interface/pcbios/ibft.c
b/src/arch/i386/interface/pcbios/ibft.c
index
718b759
..
e0baaa2
100644
(file)
--- a/
src/arch/i386/interface/pcbios/ibft.c
+++ b/
src/arch/i386/interface/pcbios/ibft.c
@@
-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 );
}
/**