Skip to content
Permalink
Browse files

fixup: C89 and all that

  • Loading branch information...
Peter Simonyi
Peter Simonyi committed Jul 11, 2019
1 parent 77c4ac5 commit b0f5be04b10592869179f4d5d65218942c4210f2
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/libtest/lib1593.c
@@ -28,6 +28,7 @@

int test(char *URL)
{
struct curl_slist *header = NULL;
long unmet;
CURL *curl = NULL;
int res = 0;
@@ -41,8 +42,11 @@ int test(char *URL)
/* Some TIMEVALUE; it doesn't matter. */
easy_setopt(curl, CURLOPT_TIMEVALUE, 1566210680L);

struct curl_slist *header = NULL;
header = curl_slist_append(header, "If-Modified-Since:");
header = curl_slist_append(NULL, "If-Modified-Since:");
if(!header) {
res = TEST_ERR_MAJOR_BAD;
goto test_cleanup;
}

easy_setopt(curl, CURLOPT_HTTPHEADER, header);

0 comments on commit b0f5be0

Please sign in to comment.
You can’t perform that action at this time.