Permalink
Browse files

Mac GUI: check that string is not empty

before trying to use it as a KV pair
  • Loading branch information...
1 parent 6e34d5e commit c7cec618d06836281d53377f02242ea9713f5025 @bradallred bradallred committed Jun 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 apple/CocoaWrapper/mac/CocoaWrapper.mm
@@ -169,7 +169,7 @@ - (IBAction)launchGame:(id) __unused sender
} else if ([obj isKindOfClass:[NSString class]]) {
value = (NSString*)obj;
}
- if (value) {
+ if (value && ![value isEqualToString:@""]) {
config->SetKeyValuePair([key cStringUsingEncoding:NSASCIIStringEncoding],
[value cStringUsingEncoding:NSASCIIStringEncoding]);
}

0 comments on commit c7cec61

Please sign in to comment.