Skip to content

Commit

Permalink
GUACAMOLE-1940: Merge correction to flag comparison in guac_rwlock_ac…
Browse files Browse the repository at this point in the history
…quire_write_lock().
  • Loading branch information
mike-jumper authored May 1, 2024
2 parents fd72a05 + 77b7f0d commit 61f943d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libguac/rwlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ int guac_rwlock_acquire_write_lock(guac_rwlock* reentrant_rwlock) {
* write lock by another function without the caller knowing about it. This
* shouldn't cause any issues, however.
*/
if (key_value == GUAC_REENTRANT_LOCK_READ_LOCK)
if (flag == GUAC_REENTRANT_LOCK_READ_LOCK)
pthread_rwlock_unlock(&(reentrant_rwlock->lock));

/* Acquire the write lock */
Expand Down

0 comments on commit 61f943d

Please sign in to comment.