summaryrefslogtreecommitdiff
path: root/imap/src/c-client/http.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-05-13 00:30:17 -0600
committerEduardo Chappa <chappa@washington.edu>2020-05-13 00:30:17 -0600
commit1a2261b89b700ae5d73bb82a7b581d7d30012f90 (patch)
tree51ced868d34a26b3cca6327c146e47d1361b8154 /imap/src/c-client/http.c
parent094812e001c4e78ecc9ff69be6f6e4fe0448c3fd (diff)
downloadalpine-1a2261b89b700ae5d73bb82a7b581d7d30012f90.tar.xz
* Clear a few compilations warnings, produced by gcc.
Diffstat (limited to 'imap/src/c-client/http.c')
-rw-r--r--imap/src/c-client/http.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/imap/src/c-client/http.c b/imap/src/c-client/http.c
index 7d95112b..3f351959 100644
--- a/imap/src/c-client/http.c
+++ b/imap/src/c-client/http.c
@@ -919,11 +919,11 @@ http_post_param(char *url, HTTP_PARAM_S *param)
HTTPSTREAM *stream;
HTTP_PARAM_S enc_param;
HTTP_REQUEST_S *http_request;
- char *reply;
+ char *reply = NULL;
int i;
if(url == NULL || param == NULL || (stream = http_open(url)) == NULL)
- return NULL;
+ return reply;
http_request = http_request_get();
http_request->request = http_request_line("POST", stream->urltail, HTTP_1_1_VERSION);
@@ -995,7 +995,7 @@ http_post_param2(char *url, HTTP_PARAM_S *param)
char *
http_get_param(char *base_url, HTTP_PARAM_S *param)
{
- char *url, *reply;
+ char *url, *reply = NIL;
url = http_get_param_url(base_url, param);
if(url){
@@ -1009,14 +1009,14 @@ char *
http_get(char *url)
{
HTTP_REQUEST_S *http_request;
- char *reply;
+ char *reply = NIL;
HTTPSTREAM *stream;
- if(!url) return NIL;
+ if(!url) return reply;
stream = http_open(url);
if(!stream){
fs_give((void **) &url);
- return NIL;
+ return reply;
}
http_request = http_request_get();