Make valgrind happy on db read
authorMark Spencer <markster@digium.com>
Tue, 2 Dec 2003 15:12:56 +0000 (15:12 +0000)
committerMark Spencer <markster@digium.com>
Tue, 2 Dec 2003 15:12:56 +0000 (15:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1812 65c4cc65-6c06-0410-ace0-fbb531ad65f3

db.c

diff --git a/db.c b/db.c
index 815ace4..4d9fd01 100755 (executable)
--- a/db.c
+++ b/db.c
@@ -135,7 +135,7 @@ int ast_db_put(const char *family, const char *keys, char *value)
 
 int ast_db_get(const char *family, const char *keys, char *value, int valuelen)
 {
-       char fullkey[256];
+       char fullkey[256]="";
        DBT key, data;
        int res;