mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
lib: fix MSVC compiler warnings
Visual C++ complained: warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data warning C4701: potentially uninitialized local variable 'path' used
This commit is contained in:
parent
95c717bbd9
commit
773cef4fae
@ -74,7 +74,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
|||||||
{
|
{
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
struct Curl_easy *data = conn->data;
|
struct Curl_easy *data = conn->data;
|
||||||
unsigned char *path;
|
unsigned char *path = NULL;
|
||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
char *response;
|
char *response;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
@ -935,7 +935,7 @@ static int dprintf_formatf(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(prec > (long)maxprec)
|
if(prec > (long)maxprec)
|
||||||
prec = maxprec-1;
|
prec = (long)maxprec-1;
|
||||||
/* RECURSIVE USAGE */
|
/* RECURSIVE USAGE */
|
||||||
len = curl_msnprintf(fptr, left, ".%ld", prec);
|
len = curl_msnprintf(fptr, left, ".%ld", prec);
|
||||||
fptr += len;
|
fptr += len;
|
||||||
|
Loading…
Reference in New Issue
Block a user