Skip to content

Exploit Code Block: Code error #38

@LavareX

Description

@LavareX

clang version: Apple LLVM version 8.0.0 (clang-800.0.42.1)
Xcode version: 7.3.1

NSURL *url = ({
    NSString *urlString = [NSString stringWithFormat:@"%@/%@", baseURLString, endpoint];
    [NSURL URLWithString:urlString];
});

compiler error: initializing 'NSURL *__strong' with an expression of incompatible type 'void'

The value of the latest statement is not returned if enclosing in round bracket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions