Commit 7fe89c5d authored by Yang Tse's avatar Yang Tse
Browse files

We use this ZERO_NULL to avoid picky compiler warnings,

when assigning a NULL pointer to a function pointer var.
parent 5c8fc7dc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -683,9 +683,9 @@ CURLcode Curl_open(struct SessionHandle **curl)
    data->set.fread_func = (curl_read_callback)fread;

    /* conversion callbacks for non-ASCII hosts */
    data->set.convfromnetwork = (curl_conv_callback)ZERO_NULL;
    data->set.convtonetwork   = (curl_conv_callback)ZERO_NULL;
    data->set.convfromutf8    = (curl_conv_callback)ZERO_NULL;
    data->set.convfromnetwork = ZERO_NULL;
    data->set.convtonetwork   = ZERO_NULL;
    data->set.convfromutf8    = ZERO_NULL;

#if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV)
    /* conversion descriptors for iconv calls */