]> granicus.if.org Git - curl/commitdiff
typecast to prevent compiler warning
authorYang Tse <yangsita@gmail.com>
Fri, 26 Oct 2007 01:12:33 +0000 (01:12 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 26 Oct 2007 01:12:33 +0000 (01:12 +0000)
lib/url.c

index c87eeaa81c4328cb6d6e0516832f67d6ff32cd8a..be8bad35f5168783673cae98f1e4a163451fa807 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1053,7 +1053,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
            to mark that postfields is used rather than read function or
            form data.
          */
-        p = malloc(data->set.postfieldsize? data->set.postfieldsize: 1);
+        p = malloc((size_t)(data->set.postfieldsize?data->set.postfieldsize:1));
 
         if (!p)
           result = CURLE_OUT_OF_MEMORY;