Skip to content

Commit

Permalink
prevent duplicate values to -c
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancdotorg committed Jul 25, 2016
1 parent 0442966 commit a82a811
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brainflayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,9 @@ int main(int argc, char **argv) {
default:
bail(1, "Unknown hash160 type '%c'.\n", copt[i]);
}
if (strchr(copt + i + 1, copt[i])) {
bail(1, "Duplicate hash160 type '%c'.\n", copt[i]);
}
pubhashfn[i].id = copt[i];
++i;
}
Expand Down

0 comments on commit a82a811

Please sign in to comment.