Fix segfault when no home directory is available.
This can be reproduced by forcing svn_user_get_homedir() to return NULL.
However, I can't imagine a situation in which this would happen in practice,
so I'm marking this as:
c: [skip]
* subversion/svn/help-cmd.c
(svn_cl__help): Guard for svn_config_get_user_config_path() returning NULL.
@@ -148,6 +148,8 @@ svn_cl__help(apr_getopt_t *os,
_("\nThe following authentication credential caches are available:\n\n"));
/*### There is no API to query available providers at run time. */
+ if (config_path)
+ {
#if (defined(WIN32) && !defined(__MINGW32__))
version_footer =
svn_stringbuf_create(apr_psprintf(pool, _("%s* Wincrypt cache in %s\n"),
@@ -163,6 +165,7 @@ svn_cl__help(apr_getopt_t *os,
pool)),
pool);
#endif
+ }
#ifdef SVN_HAVE_GNOME_KEYRING
svn_stringbuf_appendcstr(version_footer, "* Gnome Keyring\n");
#endif
