Commit e781eea6 authored by runge's avatar runge

rfbRegisterProtocolExtension extMutex was never initialized.

parent 454c1fad
2006-01-05 Karl Runge <runge@karlrunge.com>
* libvncserver/main.c: rfbRegisterProtocolExtension extMutex was
never initialized.
2005-12-24 Karl Runge <runge@karlrunge.com>
* x11vnc: enhance -passwdfile features, filetransfer on by default.
......
......@@ -61,6 +61,12 @@ void
rfbRegisterProtocolExtension(rfbProtocolExtension* extension)
{
rfbProtocolExtension* last;
static extMutex_initialized = 0;
if (! extMutex_initialized) {
INIT_MUTEX(extMutex);
extMutex_initialized = 1;
}
LOCK(extMutex);
last = extension;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment