[Pidgin] #10641: perl add_choice adds same choices within a loop
Pidgin
trac at pidgin.im
Wed Nov 4 21:52:22 EST 2009
#10641: perl add_choice adds same choices within a loop
--------------------+-------------------------------------------------------
Reporter: rlazur | Owner: deryni
Type: defect | Status: new
Milestone: | Component: plugins
Version: 2.6.3 | Resolution:
Keywords: perl |
--------------------+-------------------------------------------------------
Comment(by deryni):
Short version, I think the location associated with $1 is being reused by
the loop thus causing the code that actually tries to use the choice list
contents to repeatedly get the same piece of data. My questions about
local/my and numbers was to see if one could force perl to copy the value
before passing it to libpurple.
I'm unsure how this is supposed to work, that is I'm unsure if one is
supposed to be able to pass regex match vars to functions for later usage
as-is or not (I'm not familiar enough with perl to say). If that is, in
general, supposed to work than pidgin should just need to manually take a
copy of the data it is given instead of whatever it is doing now.
--
Ticket URL: <http://developer.pidgin.im/ticket/10641#comment:3>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list