fixes bug #385038
authorRudy Richter
Wed Jun 24 23:00:44 2009 -0400 (2009-06-24)
changeset 42286febcb06621d
parent 4227 1d6cde4c4fc3
child 4229 7293e4e2f375
fixes bug #385038
Common/Source/CFURLAdditions.c
     1.1 --- a/Common/Source/CFURLAdditions.c	Wed Jun 24 22:58:53 2009 -0400
     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);