summaryrefslogtreecommitdiffstats
path: root/path.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-23 18:01:00 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-23 18:01:00 +0000
commit5e480c7b817748e000caa967711f28eae5e2a3f2 (patch)
tree83a6663e3ced7c09afde135341c6760fe761465b /path.c
parentcb26eaf0bbcf028e3cf23c912e061268dcbb8127 (diff)
downloadmpv-5e480c7b817748e000caa967711f28eae5e2a3f2.tar.bz2
mpv-5e480c7b817748e000caa967711f28eae5e2a3f2.tar.xz
Get rid of pointless def_path variable; use codec_path directly instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30949 b3059339-0415-0410-9bf9-f77b7e298cf2
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;
}