Compare function pointers against 0 rather than nil.
This commit is contained in:
parent
eac9e0183f
commit
a87638642c
13 changed files with 15 additions and 15 deletions
|
|
@ -40,7 +40,7 @@ addseg(Map *map, Seg seg)
|
|||
if(ss == nil)
|
||||
return -1;
|
||||
map->seg = ss;
|
||||
if(seg.rw == nil){
|
||||
if(seg.rw == 0){
|
||||
if(seg.name && strcmp(seg.name, "zero") == 0)
|
||||
seg.rw = zerorw;
|
||||
else if(seg.p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue