curl-users
[ curl-Bugs-836718 ] uninitialized variable ?
Date: Wed, 05 Nov 2003 11:18:40 -0800
Bugs item #836718, was opened at 2003-11-05 20:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=836718&group_id=976
Category: libcurl
Group: wrong content
Status: Open
Resolution: None
Priority: 5
Submitted By: benjamin gerard (benjihan)
Assigned to: Daniel Stenberg (bagder)
Summary: uninitialized variable ?
Initial Comment:
Compiling libcurl (from curl-7.10.8 source package) as
a static library with MsVC7 produces a warning at the
lib/transfert.c:1861
[warning C4700: local variable 'gotourl' used without
having been initialized]
I had a look at the source file and it seems that the
warning justifies itself. Or may be I have not properly
understand but I think you should check this out.
if ((CURLE_OK == res) && urlchanged) {
char *gotourl;
res = Curl_done(conn);
if(CURLE_OK == res) {
newurl = strdup(data->change.url);
res = Curl_follow(data, gotourl);
if(res)
free(gotourl);
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=836718&group_id=976
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-11-05