diff options
author | julien.pierre.bugs%sun.com <devnull@localhost> | 2004-10-01 03:19:30 +0000 |
---|---|---|
committer | julien.pierre.bugs%sun.com <devnull@localhost> | 2004-10-01 03:19:30 +0000 |
commit | 236c5e41ef6c2f57430e7205b72f4cb04700b668 (patch) | |
tree | 18ae8d279d4e912bf2febb80e34608a3b39b4a96 | |
parent | 3f783f38d29223d0e98f4c88dbf2110f32153302 (diff) | |
download | nss-hg-236c5e41ef6c2f57430e7205b72f4cb04700b668.tar.gz |
Avoid divide by zero iteration
-rw-r--r-- | security/nss/cmd/rsaperf/rsaperf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/cmd/rsaperf/rsaperf.c b/security/nss/cmd/rsaperf/rsaperf.c index 5a88aba7f..a37cc512a 100644 --- a/security/nss/cmd/rsaperf/rsaperf.c +++ b/security/nss/cmd/rsaperf/rsaperf.c @@ -264,7 +264,7 @@ main(int argc, char **argv) secDir = PORT_Strdup(optstate->value); break; case 'i': - iters = atol(optstate->value); + iters = (atol(optstate->value)>0?atol(optstate->value):iters); break; case 's': doPriv = PR_TRUE; |