aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-11-16 23:36:33 +0000
committerdrh <drh@noemail.net>2009-11-16 23:36:33 +0000
commit68ff78b1b04bad32f67d5d0bb12c4893d8aedefb (patch)
tree5b43d590d62a3dd5bee28514e63c2faae158b6e5 /src
parentf6a82030a827fe6f60e7ff3221a53887c9162bf6 (diff)
downloadsqlite-68ff78b1b04bad32f67d5d0bb12c4893d8aedefb.tar.gz
sqlite-68ff78b1b04bad32f67d5d0bb12c4893d8aedefb.zip
Make sure the output of sqlite3OsFullPathname is initialized even if the
fails due to I/O or OOM errors. FossilOrigin-Name: e4943adb83819dee06e2e9da25ff6d967ca170de
Diffstat (limited to 'src')
-rw-r--r--src/os.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os.c b/src/os.c
index 33bdead2c..598383d5b 100644
--- a/src/os.c
+++ b/src/os.c
@@ -138,6 +138,7 @@ int sqlite3OsFullPathname(
int nPathOut,
char *zPathOut
){
+ zPathOut[0] = 0;
return pVfs->xFullPathname(pVfs, zPath, nPathOut, zPathOut);
}
#ifndef SQLITE_OMIT_LOAD_EXTENSION