summaryrefslogtreecommitdiffstats
path: root/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'path.c')
-rw-r--r--path.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/path.c b/path.c
index 83da4ee8d2..2a1d504ce3 100644
--- a/path.c
+++ b/path.c
@@ -176,20 +176,20 @@ void set_path_env(void)
}
#endif /* (defined(__MINGW32__) || defined(__CYGWIN__)) && defined(CONFIG_WIN32DLL) */
-char *def_path = BINARY_CODECS_PATH;
+char *codec_path = BINARY_CODECS_PATH;
static int needs_free = 0;
void set_codec_path(const char *path)
{
if (needs_free)
- free(def_path);
+ free(codec_path);
if (path == 0) {
- def_path = BINARY_CODECS_PATH;
+ codec_path = BINARY_CODECS_PATH;
needs_free = 0;
return;
}
- def_path = malloc(strlen(path) + 1);
- strcpy(def_path, path);
+ codec_path = malloc(strlen(path) + 1);
+ strcpy(codec_path, path);
needs_free = 1;
}