Skip to content

Fixes a trivial bug in Idenitity.cs found by code scan #1096

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

Merged
merged 1 commit into from
Jun 16, 2015
Merged

Fixes a trivial bug in Idenitity.cs found by code scan #1096

merged 1 commit into from
Jun 16, 2015

Conversation

whoisj
Copy link

@whoisj whoisj commented Jun 15, 2015

No description provided.

@@ -20,7 +20,7 @@ public Identity(string name, string email)
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNullOrEmptyString(email, "email");
Ensure.ArgumentDoesNotContainZeroByte(name, "name");
Ensure.ArgumentDoesNotContainZeroByte(name, "email");
Ensure.ArgumentDoesNotContainZeroByte(email, "email");
Copy link
Member

Choose a reason for hiding this comment

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

dammit. DAMMIT. People could've crashed!

Good job coverity!

@shiftkey
Copy link
Contributor

@whoisj
Copy link
Author

whoisj commented Jun 16, 2015

Coverity missed this one. Found by manual code scan.

nulltoken added a commit that referenced this pull request Jun 16, 2015
Fixes a trivial bug in Idenitity.cs found by code scan
@nulltoken nulltoken merged commit 325ddfc into libgit2:vNext Jun 16, 2015
@nulltoken
Copy link
Member

😖

@nulltoken
Copy link
Member

@whoisj 👍

@nulltoken nulltoken added this to the v0.22 milestone Jun 16, 2015
@whoisj whoisj deleted the fix-identity-ensure-bug branch June 19, 2015 21:56
@whoisj whoisj restored the fix-identity-ensure-bug branch June 19, 2015 21:56
@whoisj whoisj deleted the fix-identity-ensure-bug branch June 19, 2015 21:57
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.

4 participants