Skip Menu |
 

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 35769
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: jw [...] suse.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 1.11
  • 1.12
  • 1.13
  • 1.14
Fixed in: (no value)



Subject: dbimp.c uses uninitialized variables.
See attached patch. retval is used before initialized. We assume, 0 was intended.
Subject: dbimp-no_uninit.diff
--- DBD-SQLite-1.11/dbdimp.c.orig 2005-12-02 18:28:53.000000000 +0100 +++ DBD-SQLite-1.11/dbdimp.c 2006-03-13 22:13:51.176441795 +0100 @@ -246,12 +246,12 @@ int retval; if (!DBIc_ACTIVE(imp_dbh)) { - sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, "attempt to prepare on inactive database handle"); + sqlite_error(sth, (imp_xxh_t*)imp_sth, 0, "attempt to prepare on inactive database handle"); return FALSE; } if (strlen(statement) < 1) { - sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, "attempt to prepare empty statement"); + sqlite_error(sth, (imp_xxh_t*)imp_sth, 0, "attempt to prepare empty statement"); return FALSE; }
This appears to be resolved now.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.