diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-23 18:01:00 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-23 18:01:00 +0000 |
commit | 5e480c7b817748e000caa967711f28eae5e2a3f2 (patch) | |
tree | 83a6663e3ced7c09afde135341c6760fe761465b /path.c | |
parent | cb26eaf0bbcf028e3cf23c912e061268dcbb8127 (diff) | |
download | mpv-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |