ObjFW  Check-in [87b416fb5a]

Overview
Comment:OFData: Fix stream being uninitialized
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 87b416fb5ae08cb752835eb7db13a150d3faf084794b33413c8046ca4302db7b
User & Date: js on 2018-01-03 20:02:14
Other Links: manifest | tags
Context
2018-01-03
21:20
Fix Unicode table generator check-in: cb29882d9b user: js tags: trunk
20:02
OFData: Fix stream being uninitialized check-in: 87b416fb5a user: js tags: trunk
19:49
Update copyright notice check-in: 7e5c81e186 user: js tags: trunk
Changes

Modified src/OFData.m from [5d66d418f0] to [5e3c55fa09].

246
247
248
249
250
251
252



253
254
255
256
257
258
259
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262







+
+
+







		OFStream *stream;
		size_t pageSize;
		unsigned char *buffer;

		if ((URLHandler = [OFURLHandler handlerForURL: URL]) == nil)
			@throw [OFUnsupportedProtocolException
			    exceptionWithURL: URL];

		stream = [URLHandler openItemAtURL: URL
					      mode: @"r"];

		_itemSize = 1;
		_count = 0;

		pageSize = [OFSystemInfo pageSize];
		buffer = [self allocMemoryWithSize: pageSize];