From af42b7d2ede17704e12d61c3b6be35fb37544619 Mon Sep 17 00:00:00 2001 From: Automerge Script Date: Wed, 9 May 2007 15:17:30 +0000 Subject: [PATCH] automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@63607 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_directory.c b/apps/app_directory.c index c2764a2229..65a946d550 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -97,7 +97,7 @@ static void retrieve_file(char *dir) void *fdm = MAP_FAILED; SQLHSTMT stmt; char sql[256]; - char fmt[80]=""; + char fmt[80]="", empty[10] = ""; char *c; SQLLEN colsize; char full_fn[256]; @@ -148,7 +148,7 @@ static void retrieve_file(char *dir) break; } - res = SQLGetData(stmt, 1, SQL_BINARY, NULL, 0, &colsize); + res = SQLGetData(stmt, 1, SQL_BINARY, empty, 0, &colsize); fdlen = colsize; if (fd > -1) { char tmp[1]="";