ObjFW  Check-in [8e4f4567d3]

Overview
Comment:OFSystemInfo: Fix compilation

It seems I broke this code path after testing it.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8e4f4567d3ffaea42987367d0dafc9028f3aaa3b8ba514c884039b72ab54dfd7
User & Date: js on 2014-03-18 22:53:38
Other Links: manifest | tags
Context
2014-03-19
18:05
macros.h: Never define static_assert to assert check-in: 61369b9d26 user: js tags: trunk
2014-03-18
22:53
OFSystemInfo: Fix compilation check-in: 8e4f4567d3 user: js tags: trunk
2014-03-16
22:32
OFSystemInfo: Add +[user{Config,Data}Path] check-in: e3a2dc6180 user: js tags: trunk
Changes

Modified src/OFSystemInfo.m from [957b401e15] to [797dcf2e99].

151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
	OFDictionary *env = [OFApplication environment];
	OFString *var;

	if ((var = [env objectForKey: @"XDG_DATA_HOME"]) != nil &&
	    [var length] > 0) {
		[var retain];
		objc_autoreleasePoolPop(pool);
		return [dataHome autorelease];
	}

	if ((var = [env objectForKey: @"HOME"]) == nil)
		@throw [OFNotImplementedException exceptionWithSelector: _cmd
								 object: self];

	var = [OFString pathWithComponents: [OFArray arrayWithObjects:







|







151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
	OFDictionary *env = [OFApplication environment];
	OFString *var;

	if ((var = [env objectForKey: @"XDG_DATA_HOME"]) != nil &&
	    [var length] > 0) {
		[var retain];
		objc_autoreleasePoolPop(pool);
		return [var autorelease];
	}

	if ((var = [env objectForKey: @"HOME"]) == nil)
		@throw [OFNotImplementedException exceptionWithSelector: _cmd
								 object: self];

	var = [OFString pathWithComponents: [OFArray arrayWithObjects: