aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-09 15:17:30 +0000
committerautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-09 15:17:30 +0000
commitc8af707a404baeb8ad355ff4e1bb5ee981c5dd10 (patch)
treec498e8202f12f1c5b261c2fb544d5e29e7f92dfd /apps
parent6b05400544b128cc38ac4fb4d6fa31dbd1f0968f (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@63607 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index c2764a222..65a946d55 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]="";