Diego Biurrun
2014-11-03 12:36:31 UTC
Applications should rather store app-specific data in %APPDATA%.
Furthermore %USERPROFILE% is only referenced in a code branch
that would apply to obsolete Windows versions.
---
src/libdvdcss.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 5e2230d..107301f 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -261,10 +261,6 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( const char *psz_target )
{
psz_home = getenv( "HOME" );
}
- if( psz_home == NULL )
- {
- psz_home = getenv( "USERPROFILE" );
- }
/* Cache our keys in ${HOME}/.dvdcss/ */
if( psz_home )
Furthermore %USERPROFILE% is only referenced in a code branch
that would apply to obsolete Windows versions.
---
src/libdvdcss.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 5e2230d..107301f 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -261,10 +261,6 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( const char *psz_target )
{
psz_home = getenv( "HOME" );
}
- if( psz_home == NULL )
- {
- psz_home = getenv( "USERPROFILE" );
- }
/* Cache our keys in ${HOME}/.dvdcss/ */
if( psz_home )
--
1.9.1
1.9.1