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:
Marcel Raad 2016-12-21 11:05:13 +01:00
parent 95c717bbd9
commit 773cef4fae
No known key found for this signature in database
GPG Key ID: B7F13D981BBF1607
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
{
CURLcode result;
struct Curl_easy *data = conn->data;
unsigned char *path;
unsigned char *path = NULL;
char *tmp = NULL;
char *response;
size_t len;

View File

@ -935,7 +935,7 @@ static int dprintf_formatf(
}
if(prec > (long)maxprec)
prec = maxprec-1;
prec = (long)maxprec-1;
/* RECURSIVE USAGE */
len = curl_msnprintf(fptr, left, ".%ld", prec);
fptr += len;