mirror of git://anongit.mindrot.org/openssh.git
Use non-zero arg in compiler test program.
Now that we're running the test program, passing zero to the test function can cause divide-by-zero exceptions which might show up in logs.
This commit is contained in:
parent
3d44a5c565
commit
747dce3620
|
@ -18,7 +18,7 @@ int main(int argc, char **argv) {
|
||||||
float l = i * 2.1;
|
float l = i * 2.1;
|
||||||
double m = l / 0.5;
|
double m = l / 0.5;
|
||||||
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
||||||
f(0);
|
f(1);
|
||||||
snprintf(b, sizeof b, "%d %d %d %f %f %lld %lld\n", i,j,k,l,m,n,o);
|
snprintf(b, sizeof b, "%d %d %d %f %f %lld %lld\n", i,j,k,l,m,n,o);
|
||||||
if (write(1, b, 0) == -1) exit(0);
|
if (write(1, b, 0) == -1) exit(0);
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue