Skip to content

cmd/geth: fix recover command crash if no param is supplied #1966

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
Nov 5, 2015

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Nov 5, 2015

If no arguments are supplied to geth recover, if will panic because the if that checks against this got a bit convoluted and never entered (one of the operands in the condition was always false by definition).

This fixes the issue reported in #1962 (comment)

@robotally
Copy link

Vote Count Reviewers
👍 2 @bas-vk @fjl
👎 0

Updated: Thu Nov 5 12:14:43 UTC 2015

@codecov-io
Copy link

Current coverage is 46.44%

Merging #1966 into develop will decrease coverage by -0.01% as of 84992ae

Powered by Codecov. Updated on successful CI builds.

@fjl
Copy link
Contributor

fjl commented Nov 5, 2015

👍

1 similar comment
@bas-vk
Copy link
Member

bas-vk commented Nov 5, 2015

👍

fjl added a commit that referenced this pull request Nov 5, 2015
cmd/geth: fix recover command crash if no param is supplied
@fjl fjl merged commit 76390ef into ethereum:develop Nov 5, 2015
@fjl fjl removed the review label Nov 5, 2015
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.

6 participants