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
|
|
@ -66,7 +66,7 @@ mapfile(Fhdr *fp, ulong base, Map *map, Regs **regs)
|
|||
werrstr("no map");
|
||||
return -1;
|
||||
}
|
||||
if(fp->map == nil){
|
||||
if(fp->map == 0){
|
||||
werrstr("cannot load map for this file type");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue