Skip to content

Commit

Permalink
GUACAMOLE-1940: Merge correct flag comparison in "guac_rwlock_acquire…
Browse files Browse the repository at this point in the history
…_write_lock" function
  • Loading branch information
necouchman authored Apr 17, 2024
2 parents 633d5b9 + 4ba0b01 commit 91351aa
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 91351aa

Please sign in to comment.