mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-25 16:54:43 +01:00
Issue 199: Reviewed by Waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@204 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
6a3f87982d
commit
9982e65506
1 changed files with 6 additions and 3 deletions
|
|
@ -302,11 +302,14 @@ static const int kTextSection = 1;
|
|||
NSString *fn = [NSString stringWithUTF8String:&table[n_strx]];
|
||||
NSRange range = [fn rangeOfString:@":" options:NSBackwardsSearch];
|
||||
|
||||
if (![fn length] || !range.length)
|
||||
if (![fn length])
|
||||
return NO;
|
||||
|
||||
// The function has a ":" followed by some stuff
|
||||
fn = [fn substringToIndex:range.location];
|
||||
if (range.length > 0) {
|
||||
// The function has a ":" followed by some stuff, so strip it off
|
||||
fn = [fn substringToIndex:range.location];
|
||||
}
|
||||
|
||||
[self addFunction:fn line:line address:list->n_value section:list->n_sect ];
|
||||
|
||||
result = YES;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue