Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Aug 1, 2016
1 parent c32c370 commit bef6b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bilibili/LiveChat/BilibiliSocketProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ - (void)checkData {
- (void)parseMessage: (const uint8_t *)data size: (uint32_t)len{
NSData *d = [NSData dataWithBytes:data length:len];
NSError *err;
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:d options:NSJSONWritingPrettyPrinted error:&err];
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:d options:0 error:&err];
if(!err){
if(dic){
if([[dic objectForKey:@"cmd"] isEqualToString:@"DANMU_MSG"]){
Expand Down

0 comments on commit bef6b6b

Please sign in to comment.