Bugs: Browse | Submit New | Admin

[#85] warning when closing without fetching

Date:
2003-09-16 22:10
Priority:
3
Submitted By:
Fernando Arbeiza (sileno)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
warning when closing without fetching

Detailed description
Hi:

Well, this is not really a bug; but being so easily to avoid this
warning I thought I could send this report.

Using this script:

###############
#!/usr/local/bin/ruby -w

require 'freedb'

begin
    f = Freedb.new
ensure
    f.close
end

# Fin de Fichero
###############

I get this warning:

../lib/freedb.rb:355: warning: instance variable @handler not initialized

To avoid it, the @handler variable should be initialized in
Freedb.initialize

I append a tiny patch against ruby-freedb-0.5 just to show how I avoided
it.

Regards,

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
ruby-freedb-0.5.patch Patch against ruby-freedb-0.5 Download

Changes:

Field Old Value Date By
File Added9: ruby-freedb-0.5.patch2003-09-16 22:10sileno