On Wed, Sep 23, 2009 at 03:04:55PM +0200, cryptix wrote:
> Realized this is still bad.
> 
> If you have 10 SearchEngines and only the last one matches in the
> parseuri() for loop, you would still have the other 9 allocated..
> Getting rid of prefix altogether seams to be the cleanest approach.
> no need to strdup().
> 
> Updated patch attached.

Thanks cryptix. As you can tell I'm not very experienced with C and this
little patch was more of a hack anyway. :)

I've also updated the wiki entry for surf.

Reply via email to