1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Init zFullCp to prevent crashes in case DosQueryPathInfo() fails. (CVS 5435)

FossilOrigin-Name: 70685b2ae8bbb8ab4316a762e1c1cc59b8032e0b
This commit is contained in:
pweilbacher
2008-07-18 05:36:28 +00:00
parent 1af4a6e67a
commit 8f1a6ff6f7
3 changed files with 10 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
**
** This file contains code that is specific to OS/2.
**
** $Id: os_os2.c,v 1.51 2008/07/16 19:30:37 pweilbacher Exp $
** $Id: os_os2.c,v 1.52 2008/07/18 05:36:28 pweilbacher Exp $
*/
#include "sqliteInt.h"
@@ -896,7 +896,7 @@ static int os2FullPathname(
char *zFull /* Output buffer */
){
char *zRelativeCp = convertUtf8PathToCp( zRelative );
char zFullCp[CCHMAXPATH];
char zFullCp[CCHMAXPATH] = "\0";
char *zFullUTF;
APIRET rc = DosQueryPathInfo( zRelativeCp, FIL_QUERYFULLNAME, zFullCp,
CCHMAXPATH );