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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user