/ Check-in [28b737b5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a compiler warning in os.c. (CVS 1636)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | version_2
Files: files | file ages | folders
SHA1:28b737b5a0e07a142396809f8a7dbd985d433c0d
User & Date: drh 2004-06-19 11:57:08
Context
2004-06-19
11:57
Add the source code to the sqlite_analyzer utility. (CVS 1637) check-in: 06bf4c7e user: drh tags: version_2
11:57
Fix a compiler warning in os.c. (CVS 1636) check-in: 28b737b5 user: drh tags: version_2
04:23
Backport of (1628) to version 2. (CVS 1631) check-in: cce250ea user: danielk1977 tags: version_2
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os.c.

821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
#endif
#if OS_WIN
  static char zChars[] =
    "abcdefghijklmnopqrstuvwxyz"
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "0123456789";
  int i, j;
  char *zDir;
  char zTempPath[SQLITE_TEMPNAME_SIZE];
  if( sqlite_temp_directory==0 ){
    GetTempPath(SQLITE_TEMPNAME_SIZE-30, zTempPath);
    for(i=strlen(zTempPath); i>0 && zTempPath[i-1]=='\\'; i--){}
    zTempPath[i] = 0;
    zDir = zTempPath;
  }else{







|







821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
#endif
#if OS_WIN
  static char zChars[] =
    "abcdefghijklmnopqrstuvwxyz"
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "0123456789";
  int i, j;
  const char *zDir;
  char zTempPath[SQLITE_TEMPNAME_SIZE];
  if( sqlite_temp_directory==0 ){
    GetTempPath(SQLITE_TEMPNAME_SIZE-30, zTempPath);
    for(i=strlen(zTempPath); i>0 && zTempPath[i-1]=='\\'; i--){}
    zTempPath[i] = 0;
    zDir = zTempPath;
  }else{