ObjFW  Diff

Differences From Artifact [3f2babee79]:

To Artifact [60d087e2ac]:


128
129
130
131
132
133
134
135

136
137
138
139
140
141
142
143
144
145
146
147
128
129
130
131
132
133
134

135
136
137
138
139
140
141
142
143
144
145
146
147







-
+













	abort();
#endif

	OF_UNREACHABLE
}

static char *
char *
objc_strdup(const char *string)
{
	char *copy;
	size_t length = strlen(string);

	if ((copy = (char *)malloc(length + 1)) == NULL)
		return NULL;

	memcpy(copy, string, length + 1);

	return copy;
}