aboutsummaryrefslogtreecommitdiffstats
path: root/db.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-13 03:34:44 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-13 03:34:44 +0000
commit60361ee2688fab7b23b4c455315782dd8b824312 (patch)
treeec92ae0224f5c0769ad5938c6a0baa29fb971e0b /db.c
parent561f613f1094628e293178eaff94ced59d21084a (diff)
Get the printf of the value returned length out
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1308 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'db.c')
-rwxr-xr-xdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/db.c b/db.c
index 943d92591..9b56f0920 100755
--- a/db.c
+++ b/db.c
@@ -160,7 +160,9 @@ int ast_db_get(const char *family, const char *keys, char *value, int valuelen)
value[0] = 0;
ast_log(LOG_DEBUG, "Unable to find key '%s' in family '%s'\n", keys, family);
} else {
+#if 0
printf("Got value of size %d\n", data.size);
+#endif
if (data.size) {
((char *)data.data)[data.size - 1] = '\0';
strncpy(value, data.data, valuelen - 1);