]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Allow test 538 to run even when proxy support is disabled
authorDan Fandrich <dan@coneharvesters.com>
Tue, 30 Mar 2010 18:40:34 +0000 (11:40 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 30 Mar 2010 18:40:34 +0000 (11:40 -0700)
tests/libtest/lib504.c

index 418da2f8cb73e20002ebd3e94434619750d857c6..b8091f66afb6c39b3624dae03f014a229d447075 100644 (file)
@@ -51,9 +51,10 @@ int test(char *URL)
     return TEST_ERR_MAJOR_BAD;
   }
 
-  /* the point here being that there must not run anything on the given
+  /* The point here is that there must not be anything running on the given
      proxy port */
-  test_setopt(c, CURLOPT_PROXY, libtest_arg2);
+  if (libtest_arg2)
+    test_setopt(c, CURLOPT_PROXY, libtest_arg2);
   test_setopt(c, CURLOPT_URL, URL);
   test_setopt(c, CURLOPT_VERBOSE, 1L);