projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34750cc
)
Prevent a longjmp warning by moving the rc assign within Curl_resolv().
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 10 Oct 2004 03:32:01 +0000
(
03:32
+0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 10 Oct 2004 03:32:01 +0000
(
03:32
+0000)
Andy Cedilnik reported. Warning on HP-UX?
lib/hostip.c
patch
|
blob
|
history
diff --git
a/lib/hostip.c
b/lib/hostip.c
index
3db704f
..
7bb8c96
100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-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 */