diff options
author | runge <runge> | 2006-01-06 02:40:20 +0000 |
---|---|---|
committer | runge <runge> | 2006-01-06 02:40:20 +0000 |
commit | e781eea698377dd4132006742dd91da6e441c845 (patch) | |
tree | 2ba9c943e7d67c66b48b0f530bc9eebe950eb747 /libvncserver/main.c | |
parent | 454c1fad652bb9ce8bd4be030dddca887f9afc66 (diff) | |
download | libtdevnc-e781eea698377dd4132006742dd91da6e441c845.tar.gz libtdevnc-e781eea698377dd4132006742dd91da6e441c845.zip |
rfbRegisterProtocolExtension extMutex was never initialized.
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r-- | libvncserver/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c index 41d70ea..972ce6f 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -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; |