Re: [PATCH] static const field reassigned in pop3.c



On 02/21/2005 01:56:38 AM, Kacper Wysocki wrote:
Cheers all,

ever since the pop3s fix I've had trouble connecting to my non-ssl pop3 accounts. I finally got around to debugging it.

After a bit of figuring out, I discovered that my compiler (gcc 3.3.5) doesn't reinitialize static fields on subsequent calls. Not sure if that's ANSI C, didn't check. Either way, char *service should probably not be a static const.

Attached one-liner patch fixes the problem.

Your compiler does it just fine! It was a real bug. Coincidentally, I have commited equivalent patch yesterday :).

Pawel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]