diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-02-18 13:23:56 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-02-18 13:23:56 +0100 |
| commit | d9f9e8e57aba744eb522f9072e0f8fa5e614096e (patch) | |
| tree | 43748584d1159c276235d5d12fd75777291f34f2 /src | |
| parent | 33a8befbcfb9b9333220ae86e059e0dcdeb5ef0a (diff) | |
| download | box64-d9f9e8e57aba744eb522f9072e0f8fa5e614096e.tar.gz box64-d9f9e8e57aba744eb522f9072e0f8fa5e614096e.zip | |
[RCFILE] Small fix to avoind applying same profile multiple time
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rcfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c index ac6267ec..a1914fab 100644 --- a/src/tools/rcfile.c +++ b/src/tools/rcfile.c @@ -408,12 +408,12 @@ void ApplyParams(const char* name) { if(!name || !params) return; - static const char* old_name = NULL; + static char old_name[256] = ""; int new_cycle_log = cycle_log; - if(old_name && !strcmp(name, old_name)) { + if(!strcmp(name, old_name)) { return; } - old_name = name; + strncpy(old_name, name, 255); khint_t k; { char* lname = LowerCase(name); |