diff options
author | Robin KAY <komadori@users.sourceforge.net> | 2004-03-18 16:50:00 +0000 |
---|---|---|
committer | Robin KAY <komadori@users.sourceforge.net> | 2004-03-18 16:50:00 +0000 |
commit | d0aafff0b85f38ed75af9dd11e56d47bd347a293 (patch) | |
tree | 62e571eaaf957f9cfa9e9b04d5fcff3994243a20 | |
parent | 5f1f4d9a077c5175a24a09f2c1f602c12e8e8f87 (diff) | |
download | xine-lib-d0aafff0b85f38ed75af9dd11e56d47bd347a293.tar.gz xine-lib-d0aafff0b85f38ed75af9dd11e56d47bd347a293.tar.bz2 |
The string passed to putenv must not be freed during the lifetime of that entry. Using automatic varaibles was also wrong.
CVS patchset: 6288
CVS date: 2004/03/18 16:50:00
-rw-r--r-- | src/xine-utils/xineutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index f93854891..dbd1365ba 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.80 2004/03/03 19:59:43 mroi Exp $ + * $Id: xineutils.h,v 1.81 2004/03/18 16:50:00 komadori Exp $ * */ #ifndef XINEUTILS_H @@ -723,7 +723,7 @@ static inline void _private_setenv(const char *name, const char *val, int _xx) { sprintf(env, "%s%c%s", name, '=', val); putenv(env); - free(env); + /*free(env); The string passed to putenv must not be freed*/ } #define xine_setenv _private_setenv #endif |