ObjFW  Diff

Differences From Artifact [294711f4b4]:

To Artifact [cab2a5a929]:


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#import "config.h"

#import <string.h>
#import "OFConstCString.h"

@implementation OFConstCString
- initWithConstCString: (const char*)str
{
	if ((self = [super init])) {
		if (str == NULL) {
			length = 0;
			string = NULL;
		} else {
			length = strlen(str);







|







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#import "config.h"

#import <string.h>
#import "OFConstCString.h"

@implementation OFConstCString
- initAsConstCString: (const char*)str
{
	if ((self = [super init])) {
		if (str == NULL) {
			length = 0;
			string = NULL;
		} else {
			length = strlen(str);