Bug 116345 - local variable used before set
local variable used before set
Product: Fedora
Classification: Fedora
Component: curl (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Eido Inoue
Depends On:
  Show dependency treegraph
Reported: 2004-02-20 07:02 EST by d.binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 7.11.1-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-07 14:44:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description d.binderman 2004-02-20 07:02:31 EST
Description of problem:

I just tried to compile development package curl-7.10.8-1

The compiler said

transfer.c(1861): remark #592: variable "gotourl" is used before its
value is set

The source code is

        char *gotourl;
        res = Curl_done(conn);
        if(CURLE_OK == res) {
          newurl = strdup(data->change.url);
          res = Curl_follow(data, gotourl);

Suggest init gotourl before first use.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Eido Inoue 2004-04-07 14:44:13 EDT
in 7.11.1, gotourl is inited with its declaration by the return value
of a strdup()

Note You need to log in before you can comment on or make changes to this bug.