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