Bug 156965

Summary: perl-DBD-SQLite-1.11-5: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Juergen Weigert <jw>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-03-10 10:08:49 UTC
I just tried to compile package perl-DBD-SQLite-1.11-5 with the Intel C compiler.

It said

dbdimp.c(249): warning #592: variable "retval" is used before its value is set

The source code is

    int retval;

    if (!DBIc_ACTIVE(imp_dbh)) {
      sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, "attempt to prepare on inactive database handle");

Suggest initialise local variable "retval" before first use.
Comment 1 Juergen Weigert 2006-03-13 21:32:36 UTC
rt.cpan.org#18153 done.
fixed locally. 
new package submitted.
thanks.
Comment 2 Juergen Weigert 2006-03-14 14:21:11 UTC
closed fixed.