aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-07-26 19:42:16 +0200
committerYang Tse <yangsita@gmail.com>2011-07-26 19:42:16 +0200
commit78bbd0eecff23203dd8a1aa2dd76143af9a90b7b (patch)
tree7012069d3acc2b88a1ba09bc202fb3a4eb454fc6 /lib
parentf1586cb4775681810afd8e6626e7842d459f3b85 (diff)
fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_gssapi.h4
-rw-r--r--lib/http.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl_gssapi.h b/lib/curl_gssapi.h
index c5fbefe7a..249e864fe 100644
--- a/lib/curl_gssapi.h
+++ b/lib/curl_gssapi.h
@@ -1,3 +1,5 @@
+#ifndef HEADER_CURL_GSSAPI_H
+#define HEADER_CURL_GSSAPI_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
@@ -49,3 +51,5 @@ OM_uint32 Curl_gss_init_sec_context(
OM_uint32 * ret_flags);
#endif /* HAVE_GSSAPI */
+
+#endif /* HEADER_CURL_GSSAPI_H */
diff --git a/lib/http.c b/lib/http.c
index bb4b38793..6646d5ed3 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1631,7 +1631,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
curl_off_t included_body = 0;
const char *httpstring;
Curl_send_buffer *req_buffer;
- curl_off_t postsize; /* off_t type to be able to hold a large file size */
+ curl_off_t postsize = 0; /* off_t type to be able to hold a large file size */
int seekerr = CURL_SEEKFUNC_OK;
/* Always consider the DO phase done after this function call, even if there