mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-21 14:33:55 +00:00
Remove pointless optimization in get_default_conf()
This commit is contained in:
+1
-3
@@ -482,9 +482,6 @@ get_default_conf(void)
|
||||
static char userconf[PATH_MAX] = { 0 };
|
||||
char *conf_home;
|
||||
|
||||
if (userconf[0] != '\0')
|
||||
return userconf;
|
||||
|
||||
conf_home = getenv("XDG_CONFIG_HOME");
|
||||
|
||||
if (!conf_home) {
|
||||
@@ -500,5 +497,6 @@ get_default_conf(void)
|
||||
return userconf;
|
||||
|
||||
// If not, fall back to the system-wide config.
|
||||
userconf[0] = '\0';
|
||||
return sysconf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user