Prevent a longjmp warning by moving the rc assign within Curl_resolv().

Andy Cedilnik reported. Warning on HP-UX?
This commit is contained in:
Daniel Stenberg 2004-10-10 03:32:01 +00:00
Родитель 34750cc738
Коммит 6d1b37b3da
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -378,9 +378,7 @@ int Curl_resolv(struct connectdata *conn,
int wait;
struct SessionHandle *data = conn->data;
CURLcode result;
/* default to failure */
int rc = CURLRESOLV_ERROR;
int rc;
*entry = NULL;
#ifdef HAVE_SIGSETJMP
@ -413,6 +411,8 @@ int Curl_resolv(struct connectdata *conn,
/* free the allocated entry_id again */
free(entry_id);
rc = CURLRESOLV_ERROR; /* default to failure */
if (!dns) {
/* The entry was not in the cache. Resolve it to IP address */