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:
Marcelo Araujo 2016-04-14 11:41:30 +00:00
parent f8a39033c2
commit f9e059ac83

View File

@ -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;
}