diff options
author | Bryan Ischo <bryan@ischo.com> | 2008-07-29 03:54:23 +0000 |
---|---|---|
committer | Bryan Ischo <bryan@ischo.com> | 2008-07-29 03:54:23 +0000 |
commit | 0ec0f691f942e90f53424700a41bdf1431546784 (patch) | |
tree | 11eb7f1a1136c29e42ea905d86ba56258c8a2687 /src | |
parent | d8c8bbfcf883619ba2886f89edfbc6bc64c99d3b (diff) | |
download | ceph-libs3-0ec0f691f942e90f53424700a41bdf1431546784.tar.gz |
* Fixed compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/request.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/request.c b/src/request.c index 8ff33f1..43e6127 100644 --- a/src/request.c +++ b/src/request.c @@ -120,13 +120,17 @@ static void request_headers_done(Request *request) request->propertiesCallbackMade = 1; // Get the http response code + long httpResponseCode; request->httpResponseCode = 0; if (curl_easy_getinfo(request->curl, CURLINFO_RESPONSE_CODE, - &(request->httpResponseCode)) != CURLE_OK) { + &httpResponseCode) != CURLE_OK) { // Not able to get the HTTP response code - error request->status = S3StatusInternalError; return; } + else { + request->httpResponseCode = httpResponseCode; + } response_headers_handler_done(&(request->responseHeadersHandler), request->curl); |