git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6380
// read_dot_valgrindrc() allocates the return value with
// VG_(malloc)(). We do not free f1_clo and f2_clo as they get
// put into VG_(args_for_valgrind) and so must persist.
- HChar* f1_clo = read_dot_valgrindrc( VG_(getenv)("HOME") );
+ HChar* home = VG_(getenv)("HOME");
+ HChar* f1_clo = home ? read_dot_valgrindrc( home ) : NULL;
HChar* env_clo = VG_(strdup)( VG_(getenv)(VALGRIND_OPTS) );
HChar* f2_clo = read_dot_valgrindrc(".");