[asterisk-commits] tilghman: branch 1.4 r63566 - in /branches/1.4: ./ apps/app_directory.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed May 9 07:50:33 MST 2007


Author: tilghman
Date: Wed May  9 09:50:33 2007
New Revision: 63566

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63566
Log:
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)

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/apps/app_directory.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_directory.c?view=diff&rev=63566&r1=63565&r2=63566
==============================================================================
--- branches/1.4/apps/app_directory.c (original)
+++ branches/1.4/apps/app_directory.c Wed May  9 09:50:33 2007
@@ -98,7 +98,7 @@
 	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 @@
 				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]="";



More information about the asterisk-commits mailing list