ref: 5fd2b38c343a94407863d9fa0820aa251c3d354c
parent: 100ac1a3762915042ee65b1bf370399966f61be5
author: Petri Hintukainen <[email protected]>
date: Sun Mar 13 08:27:02 EDT 2016
Fix check for empty home dir
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -234,7 +234,7 @@
/* Try looking in password file for home dir. */
p_pwd = getpwuid(getuid());
- if( p_pwd && p_pwd[ 0 ] )
+ if( p_pwd && p_pwd->pw_dir && p_pwd->pw_dir[ 0 ] )
{
psz_home = p_pwd->pw_dir;
}