Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDFileLogger: fixed crash that occured in case if application name == nil #198

Merged
merged 2 commits into from
Dec 27, 2013

Conversation

dvor
Copy link
Member

@dvor dvor commented Dec 25, 2013

Issue #197

DDFileLogger was crashing in case if appName was equal to nil.

}

return appName;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that for performance this method should be wrapped inside a dispatch_once block and store the value in a static _appName.

@dvor
Copy link
Member Author

dvor commented Dec 26, 2013

@rivera-ernesto this make sense, I've updated pull request.

dvor added a commit to robbiehanson/CocoaAsyncSocket that referenced this pull request Dec 26, 2013
@rivera-ernesto
Copy link
Member

Cool!

rivera-ernesto pushed a commit that referenced this pull request Dec 27, 2013
DDFileLogger: fixed crash that occured in case if application name == nil
@rivera-ernesto rivera-ernesto merged commit 2adf27c into CocoaLumberjack:master Dec 27, 2013
@dvor dvor deleted the ddfilelogger-fixing-crash branch December 27, 2013 08:09
@bpoplauschi bpoplauschi added this to the 1.8.0 milestone Feb 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants