File: 32-fix_an_uninitialized_variable_in_the_command-line_shell.patch

package info (click to toggle)
sqlite3 3.16.2-5+deb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 88,416 kB
  • sloc: ansic: 195,593; tcl: 14,245; sh: 10,163; yacc: 1,246; makefile: 1,058; cs: 299; cpp: 128
file content (18 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: trunk/src/shell.c
==================================================================
--- trunk/src/shell.c
+++ trunk/src/shell.c
@@ -5295,11 +5295,11 @@
         sqlite3_libversion(), sqlite3_sourceid());
   }else
 
   if( c=='v' && strncmp(azArg[0], "vfsinfo", n)==0 ){
     const char *zDbName = nArg==2 ? azArg[1] : "main";
-    sqlite3_vfs *pVfs;
+    sqlite3_vfs *pVfs = 0;
     if( p->db ){
       sqlite3_file_control(p->db, zDbName, SQLITE_FCNTL_VFS_POINTER, &pVfs);
       if( pVfs ){
         utf8_printf(p->out, "vfs.zName      = \"%s\"\n", pVfs->zName);
         raw_printf(p->out, "vfs.iVersion   = %d\n", pVfs->iVersion);