diff options
author | 2020-09-07 09:47:29 +0200 | |
---|---|---|
committer | 2020-09-07 00:47:29 -0700 | |
commit | d66571ff07f1535c422ef9e6ac333f01dc65724b (patch) | |
tree | 1a97b21d09a554e6e3bad0853ea677f488efed46 | |
parent | f8593119d16086fada08129584660f3ef16435d8 (diff) |
Remove get_username (#4418)
-rw-r--r-- | projects/postgresql/fuzzer/fuzzer_initialize.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/projects/postgresql/fuzzer/fuzzer_initialize.c b/projects/postgresql/fuzzer/fuzzer_initialize.c index e465ce66..c3bada22 100644 --- a/projects/postgresql/fuzzer/fuzzer_initialize.c +++ b/projects/postgresql/fuzzer/fuzzer_initialize.c @@ -38,12 +38,7 @@ const char *progname; static MemoryContext row_description_context = NULL; static StringInfoData row_description_buf; -static const char *username = NULL; - -static void fuzzer_exit(){ - if(username) - pfree((void *) username); -} +static const char *username = "username"; int FuzzerInitialize(char *dbname){ char *argv[5]; @@ -65,8 +60,6 @@ int FuzzerInitialize(char *dbname){ progname = get_progname(argv[0]); MemoryContextInit(); - username = strdup(get_user_name_or_exit(progname)); - InitStandaloneProcess(argv[0]); SetProcessingMode(InitProcessing); InitializeGUCOptions(); @@ -103,6 +96,5 @@ int FuzzerInitialize(char *dbname){ PgStartTime = GetCurrentTimestamp(); whereToSendOutput = DestNone; Log_destination = 0; - atexit(fuzzer_exit); return 0; } |