ObjFW  Check-in [ab13f1d324]

Overview
Comment:OFMethod: Add one more NULL check.

This makes sure we never compare anything with NULL.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ab13f1d3242cb4cf0f050baef69664770755f5bcda904fc2771e73415d6ff70c
User & Date: js on 2012-12-02 16:43:45
Other Links: manifest | tags
Context
2012-12-03
01:16
JSON: Add configurable depth limit. check-in: d60c3ae1ec user: js tags: trunk
2012-12-02
16:43
OFMethod: Add one more NULL check. check-in: ab13f1d324 user: js tags: trunk
16:43
Add a warning about mutating objects in a set. check-in: 7da3f6be09 user: js tags: trunk
Changes

Modified src/OFIntrospection.m from [3575f5766b] to [f27111d726].

109
110
111
112
113
114
115


116

117
118
119
120
121
122
123
109
110
111
112
113
114
115
116
117

118
119
120
121
122
123
124
125







+
+
-
+








	if (![otherMethod->name isEqual: name])
		return NO;

	if ((otherMethod->typeEncoding == NULL && typeEncoding != NULL) ||
	    (otherMethod->typeEncoding != NULL && typeEncoding == NULL))
		return NO;

	if (otherMethod->typeEncoding != NULL && typeEncoding != NULL &&
	if (strcmp(otherMethod->typeEncoding, typeEncoding))
	    strcmp(otherMethod->typeEncoding, typeEncoding))
		return NO;

	return YES;
}

- (uint32_t)hash
{