[Pidgin] #7794: purple_url_encode does not work if called more than once in a given thread
Pidgin
trac at pidgin.im
Tue Dec 16 15:35:38 EST 2008
#7794: purple_url_encode does not work if called more than once in a given thread
-------------------------------+--------------------------------------------
Reporter: pgillis | Owner:
Type: defect | Status: closed
Milestone: | Component: libpurple
Version: 2.5.2 | Resolution: worksforme
Keywords: purple_url_encode |
-------------------------------+--------------------------------------------
Changes (by datallah):
* status: new => closed
* resolution: => worksforme
Comment:
I think a more accurate way to describe the behavior is that the pointer
returned will always reflect the most recent run.
This behavior is pretty normal and there are a number of functions in the
libpurple API that behave in this way.
Using a pattern like the following, you can accomplish whatever you need
to do:
{{{
char *val1 = g_strdup(purple_url_encode(in1));
char *val2 = purple_url_encode(in2);
do_something(val1, val2);
g_free(val1);
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/7794#comment:1>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list