You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/02/06 00:50:59 UTC
svn commit: r1565000 -
/subversion/branches/automatic-pager/subversion/svn/help-cmd.c
Author: breser
Date: Wed Feb 5 23:50:59 2014
New Revision: 1565000
URL: http://svn.apache.org/r1565000
Log:
Don't crash when command-line client is run with no options.
* subversion/svn/help-cmd.c
(svn_cl__help): Check opt_state before dereferencing it, since we
can be called without a baton, and thus can end up with no
opt_state.
Modified:
subversion/branches/automatic-pager/subversion/svn/help-cmd.c
Modified: subversion/branches/automatic-pager/subversion/svn/help-cmd.c
URL: http://svn.apache.org/viewvc/subversion/branches/automatic-pager/subversion/svn/help-cmd.c?rev=1565000&r1=1564999&r2=1565000&view=diff
==============================================================================
--- subversion/branches/automatic-pager/subversion/svn/help-cmd.c (original)
+++ subversion/branches/automatic-pager/subversion/svn/help-cmd.c Wed Feb 5 23:50:59 2014
@@ -133,7 +133,7 @@ svn_cl__help(apr_getopt_t *os,
version_footer = svn_stringbuf_create(ra_desc_start, pool);
SVN_ERR(svn_ra_print_modules(version_footer, pool));
- if (!opt_state->non_interactive)
+ if (opt_state && !opt_state->non_interactive)
SVN_ERR(svn_cl__start_pager(&pager_proc, pool, pool));
SVN_ERR(svn_opt_print_help4(os,