Skip to content

Commit a41a1df

Browse files
committed
Add explicitly initialization of newComp variable
1 parent 7af5ec9 commit a41a1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/URL.subproj/CFURL.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4786,7 +4786,7 @@ CFURLRef CFURLCreateCopyAppendingPathComponent(CFAllocatorRef allocator, CFURLRe
47864786
#endif
47874787

47884788
CFMutableStringRef newString;
4789-
CFStringRef newComp;
4789+
CFStringRef newComp = NULL;
47904790
CFRange pathRg;
47914791
if (!(url->_flags & HAS_PATH)) {
47924792
result = NULL;

0 commit comments

Comments
 (0)