]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Use non-zero arg in compiler test program.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 24 Nov 2023 22:03:38 +0000 (09:03 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 24 Nov 2023 22:03:38 +0000 (09:03 +1100)
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.

m4/openssh.m4

index 3aed247ea724d866aa318417834eb2644d0cb485..6a1fa9b0e1f624f75f2e4ef8adddd77387a867ff 100644 (file)
@@ -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);
        /*