summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
Diffstat (limited to 'polyp')
-rw-r--r--polyp/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/polyp/util.c b/polyp/util.c
index f9098704..4b6edb97 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -965,19 +965,19 @@ FILE *pa_open_config_file(const char *global, const char *local, const char *env
FILE *f;
char *lfn;
- lfn = pa_sprintf_malloc("%s/%s", h, local);
+ fn = lfn = pa_sprintf_malloc("%s/%s", h, local);
#ifdef OS_IS_WIN32
if (!ExpandEnvironmentStrings(lfn, buf, PATH_MAX))
return NULL;
- lfn = buf;
+ fn = buf;
#endif
- f = fopen(lfn, "r");
+ f = fopen(fn, "r");
if (f || errno != ENOENT) {
if (result)
- *result = pa_xstrdup(lfn);
+ *result = pa_xstrdup(fn);
pa_xfree(lfn);
return f;
}