diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-06 21:35:57 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-06 21:35:57 +0000 |
commit | 7a2ed6afd343b51c1934fad28c0292fd252ce77f (patch) | |
tree | 868d4832c791a2fed8ea81d807aba6d0b6187f94 /main/db.c | |
parent | d9d325dae5de389121113da52470ffc81d4a6f6a (diff) |
Use the correct variable when creating the format string
(closes issue #14177)
Reported by: nic_bellamy
Patches:
asterisk-trunk-svn-r167242-ast_db_gettree.patch uploaded by nic (license 299)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@167299 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/db.c')
-rw-r--r-- | main/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -407,7 +407,7 @@ struct ast_db_entry *ast_db_gettree(const char *family, const char *keytree) if (!ast_strlen_zero(family)) { if (!ast_strlen_zero(keytree)) { /* Family and key tree */ - snprintf(prefix, sizeof(prefix), "/%s/%s", family, prefix); + snprintf(prefix, sizeof(prefix), "/%s/%s", family, keytree); } else { /* Family only */ snprintf(prefix, sizeof(prefix), "/%s", family); |