diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2020-05-27 17:19:31 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2020-05-27 18:22:39 +0300 |
commit | 2c36d7d754560065b73d5d6ef01a571573d3f13f (patch) | |
tree | ac9a643bd6cd283b36a79bb078e3fc7bcc33acd6 /benchmark | |
parent | 4108e77e0eb091fdd9b9c4174374a6ac0cc0abd0 (diff) | |
download | gost-engine-2c36d7d754560065b73d5d6ef01a571573d3f13f.zip gost-engine-2c36d7d754560065b73d5d6ef01a571573d3f13f.tar.gz gost-engine-2c36d7d754560065b73d5d6ef01a571573d3f13f.tar.bz2 |
benchmark/sign: Fix crash on incorrect options
Bug found by Clang scan-build.
Fixes #258.
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/sign.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/benchmark/sign.c b/benchmark/sign.c index 5c53df7..7696b91 100644 --- a/benchmark/sign.c +++ b/benchmark/sign.c @@ -85,8 +85,6 @@ int main(int argc, char **argv) opterr = 0; while((option = getopt(argc, argv, "l:c:C")) >= 0) { - if(option == ':') option = optopt; - if(optarg && (optarg[0] == '-')) { optind--; optarg = NULL; } switch (option) { case 'l': |