aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2023-11-25 09:03:38 +1100
committerDarren Tucker <dtucker@dtucker.net>2023-11-25 09:03:38 +1100
commit747dce36206675ca6b885010a835733df469351b (patch)
tree6542d2129e449306dcb409bd4163908642694a88
parent3d44a5c56585d1c351dbc006240a591b6da502b1 (diff)
downloadopenssh-747dce36206675ca6b885010a835733df469351b.tar.gz
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.
-rw-r--r--m4/openssh.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/openssh.m4 b/m4/openssh.m4
index 3aed247ea..6a1fa9b0e 100644
--- a/m4/openssh.m4
+++ b/m4/openssh.m4
@@ -18,7 +18,7 @@ int main(int argc, char **argv) {
float l = i * 2.1;
double m = l / 0.5;
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);
if (write(1, b, 0) == -1) exit(0);
/*