1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

Refinements to the previous check-in.

FossilOrigin-Name: b36dfdff787dc4a107b2c3fcbb98bfc4922872d8
This commit is contained in:
mistachkin
2016-04-04 02:33:34 +00:00
parent 1fe36bb8a8
commit 1810f22809
4 changed files with 14 additions and 13 deletions

View File

@@ -4999,7 +4999,7 @@ static char *cmdline_option_value(int argc, char **argv, int i){
int SQLITE_CDECL main(int argc, char **argv){
#else
int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
char **argv = 0;
char **argv;
#endif
char *zErrMsg = 0;
ShellState data;
@@ -5013,6 +5013,8 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
setBinaryMode(stdin, 0);
setvbuf(stderr, 0, _IONBF, 0); /* Make sure stderr is unbuffered */
stdin_is_interactive = isatty(0);
stdout_is_console = isatty(1);
#if USE_SYSTEM_SQLITE+0!=1
if( strcmp(sqlite3_sourceid(),SQLITE_SOURCE_ID)!=0 ){
@@ -5037,9 +5039,8 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
}
}
#endif
assert( argc>=1 && argv && argv[0] );
Argv0 = argv[0];
stdin_is_interactive = isatty(0);
stdout_is_console = isatty(1);
/* Make sure we have a valid signal handler early, before anything
** else is done.