diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-09 14:50:33 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-09 14:50:33 +0000 |
commit | 5bb2ca8ba51029295b3c8ffb45c182598edd1ff3 (patch) | |
tree | a724fcf84b007eac5b9e5538a1a3b81ad1b2dbf2 /apps | |
parent | 18a7120713d8c25a18e6d36ffc0ad2cb492f458c (diff) |
Merged revisions 63565 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r63565 | tilghman | 2007-05-09 09:48:06 -0500 (Wed, 09 May 2007) | 2 lines
Replicate fix from 51158 (app_voicemail) to app_directory (Issue 9224)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63566 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index 464adcd85..5c1a71e3f 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -98,7 +98,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]; @@ -149,7 +149,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]=""; |