Use NULL instead of 0 for pointers.
fopen(3) returns a FILE pointer, otherwise NULL is returned. MFC after: 2 weeks
This commit is contained in:
parent
f8a39033c2
commit
f9e059ac83
@ -355,7 +355,7 @@ dumpstate(struct kvmvars *kvp)
|
||||
|
||||
setprof(kvp, GMON_PROF_OFF);
|
||||
fp = fopen("gmon.out", "w");
|
||||
if (fp == 0) {
|
||||
if (fp == NULL) {
|
||||
warn("gmon.out");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user