Browse Source

Remove pointless optimization in get_default_conf()

pull/1922/head
ksqsf 6 years ago
parent
commit
2a3d3bc13c
1 changed files with 1 additions and 3 deletions
  1. 4
      src/utils.c

4
src/utils.c

@ -482,9 +482,6 @@ get_default_conf(void)
static char userconf[PATH_MAX] = { 0 }; static char userconf[PATH_MAX] = { 0 };
char *conf_home; char *conf_home;
if (userconf[0] != '\0')
return userconf;
conf_home = getenv("XDG_CONFIG_HOME"); conf_home = getenv("XDG_CONFIG_HOME");
if (!conf_home) { if (!conf_home) {
@ -500,5 +497,6 @@ get_default_conf(void)
return userconf; return userconf;
// If not, fall back to the system-wide config. // If not, fall back to the system-wide config.
userconf[0] = '\0';
return sysconf; return sysconf;
} }
Loading…
Cancel
Save