mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
backport fix from revision 7856 of trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
db.c
4
db.c
@@ -121,8 +121,10 @@ int ast_db_deltree(const char *family, const char *keytree)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ast_mutex_lock(&dblock);
|
ast_mutex_lock(&dblock);
|
||||||
if (dbinit())
|
if (dbinit()) {
|
||||||
|
ast_mutex_unlock(&dblock);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&key, 0, sizeof(key));
|
memset(&key, 0, sizeof(key));
|
||||||
memset(&data, 0, sizeof(data));
|
memset(&data, 0, sizeof(data));
|
||||||
|
|||||||
Reference in New Issue
Block a user