Common/Source/CFURLAdditions.c
changeset 4228 6febcb06621d
parent 4168 a476173fbe3f
child 5007 d9fd5792174b
     1.1 --- a/Common/Source/CFURLAdditions.c	Fri Sep 19 00:23:24 2008 -0700
     1.2 +++ b/Common/Source/CFURLAdditions.c	Wed Jun 24 23:00:44 2009 -0400
     1.3 @@ -102,11 +102,10 @@
     1.4  	if (!url) {
     1.5  		if (path) {
     1.6  			CFNumberRef pathStyleNum = CFDictionaryGetValue(dict, _CFURLStringTypeKey);
     1.7 -			CFURLPathStyle pathStyle;
     1.8 +			CFURLPathStyle pathStyle = kCFURLPOSIXPathStyle;
     1.9 +			
    1.10  			if (pathStyleNum)
    1.11  				CFNumberGetValue(pathStyleNum, kCFNumberIntType, &pathStyle);
    1.12 -			else
    1.13 -				pathStyle = kCFURLPOSIXPathStyle;
    1.14  
    1.15  			char *filename = createFileSystemRepresentationOfString(path);
    1.16  			int fd = open(filename, O_RDONLY, 0);