Bug 150213 - local variable used before set
Summary: local variable used before set
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: silky
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Toni Willberg
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-03-03 19:51 UTC by David Binderman
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-03-03 20:23:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2005-03-03 19:51:34 UTC
Description of problem:

I just tried to compile silky-0.5.2-1 from 
Redhat Fedora Extras development tree.

The Intel compiler said

support.c(85): remark #592: variable "iter" is used before its value
is set

The source code is

  GtkTreeIter iter;
  gboolean valid;
  SilcClientID *stored_clientid;

  debug("get_nicklist_iter_by_clientid()");

  if (!client_id) {
    debug("Did not get client_id");
    return iter;

Suggest init local variable iter before first use.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Toni Willberg 2005-03-03 20:23:56 UTC
Hi and thanks for the report.

The bug had been already fixed in the upstream CVS.

Next release of Silky containing the fix shall be released soon. We
are already in string freeze for release candidate.

Yours,
 Toni Willberg
 author of Silky


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