]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
optarg is from unistd.h, use opt_arg from apr_getopt().
authorJean-Frederic Clere <jfclere@apache.org>
Wed, 6 Mar 2024 12:14:46 +0000 (12:14 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Wed, 6 Mar 2024 12:14:46 +0000 (12:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916148 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 664c4f8bb1d66d6a8354158594c9672f462eca29..3ff229de3a89ffe2d50dc2bb0a82fbb885a02414 100644 (file)
@@ -3068,7 +3068,7 @@ int main(int argc, const char * const argv[])
                 keepalive = 1;
                 break;
             case 'o':
-                src_address = strdup(optarg);
+                src_address = strdup(opt_arg);
                 break;
             case 'q':
                 heartbeatres = 0;