Skip to content

Commit

Permalink
Return NULL for invalid chars
Browse files Browse the repository at this point in the history
This point will never be reached, thanks to throwing an exception, but
a return value is needed to shut the compiler up
  • Loading branch information
mikeabdullah committed Jun 2, 2014
1 parent 64ea007 commit beed41a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/objc/SBJson4StreamWriter.m
Expand Up @@ -268,6 +268,7 @@ - (BOOL)writeValue:(id)o {
case 92: return "\\\\";
default:
[NSException raise:@"Illegal escape char" format:@"-->%c<-- is not a legal escape character", c];
return NULL;
}
}

Expand Down

0 comments on commit beed41a

Please sign in to comment.