diff options
Diffstat (limited to 'tests/libtest/lib591.c')
-rw-r--r-- | tests/libtest/lib591.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/libtest/lib591.c b/tests/libtest/lib591.c index c04d3fbae..53ede3fcd 100644 --- a/tests/libtest/lib591.c +++ b/tests/libtest/lib591.c @@ -44,15 +44,13 @@ int test(char *URL) int msgs_left; CURLMsg *msg; FILE *upload = NULL; - int error; start_test_timing(); upload = fopen(libtest_arg3, "rb"); if(!upload) { - error = errno; fprintf(stderr, "fopen() failed with error: %d (%s)\n", - error, strerror(error)); + errno, strerror(errno)); fprintf(stderr, "Error opening file: (%s)\n", libtest_arg3); return TEST_ERR_FOPEN; } |