diff options
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index 7325963b7..c3edcd626 100644 --- a/main/utils.c +++ b/main/utils.c @@ -611,7 +611,7 @@ void ast_store_lock_info(enum ast_lock_type type, const char *filename, return; } - if (i && lock_info->locks[i].pending == -1) { + if (i && lock_info->locks[i-1].pending == -1) { /* The last lock on the list was one that this thread tried to lock but * failed at doing so. It has now moved on to something else, so remove * the old lock from the list. */ |