ObjFW  Check-in [08769cce4e]

Overview
Comment:Prevent double-closing in OFFile.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 08769cce4e99d7aa571fe2c11ec65dbf09264fca88bc6ac0403853b5769b89b9
User & Date: js on 2010-03-15 14:10:03
Other Links: manifest | tags
Context
2010-03-15
19:44
Have the Info.plist from the framework in the repo as a file. check-in: 687f0b5006 user: js tags: trunk
14:10
Prevent double-closing in OFFile. check-in: 08769cce4e user: js tags: trunk
01:38
Add uintptr_t to OFNumber. check-in: 3e2aa4cf61 user: js tags: trunk
Changes

Modified src/OFFile.m from [9b7c94885a] to [778d1b4971].

218
219
220
221
222
223
224

225
226
227
228
229
230
231
232
						       size: size];

	return ret;
}

- close
{

	fclose(fp);
	fp = NULL;

	return self;
}
@end

/// \cond internal







>
|







218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
						       size: size];

	return ret;
}

- close
{
	if (fp != NULL)
		fclose(fp);
	fp = NULL;

	return self;
}
@end

/// \cond internal