mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-13 11:15:27 +00:00
This was overkill
This commit is contained in:
parent
9d7a914515
commit
f33c65aed2
@ -4163,12 +4163,11 @@ void set_current_config() {
|
||||
FILE *fp;
|
||||
|
||||
/* Try to use personal config file first */
|
||||
std::string *buf = new std::string(to_real_path(CONFIG_FILE));
|
||||
if (!buf->empty() && (fp = fopen(buf->c_str(), "r"))) {
|
||||
current_config = buf->c_str();
|
||||
std::string buf = to_real_path(CONFIG_FILE);
|
||||
if (!buf.empty() && (fp = fopen(buf.c_str(), "r"))) {
|
||||
current_config = buf;
|
||||
fclose(fp);
|
||||
}
|
||||
delete buf;
|
||||
|
||||
/* Try to use system config file if personal config not readable */
|
||||
if (current_config.empty() && (fp = fopen(SYSTEM_CONFIG_FILE, "r"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user