subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1660362 - /subversion/trunk/subversion/svn/commit-cmd.c
Date Tue, 17 Feb 2015 12:32:07 GMT
Author: rhuijben
Date: Tue Feb 17 12:32:07 2015
New Revision: 1660362

URL: http://svn.apache.org/r1660362
Log:
* subversion/svn/commit-cmd.c
  (svn_cl__commit): Check ctx->config for NULL before using it, like most
    (if not all) other code in libsvn_client.

Modified:
    subversion/trunk/subversion/svn/commit-cmd.c

Modified: subversion/trunk/subversion/svn/commit-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/commit-cmd.c?rev=1660362&r1=1660361&r2=1660362&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/commit-cmd.c (original)
+++ subversion/trunk/subversion/svn/commit-cmd.c Tue Feb 17 12:32:07 2015
@@ -137,7 +137,9 @@ svn_cl__commit(apr_getopt_t *os,
   if (opt_state->depth == svn_depth_unknown)
     opt_state->depth = svn_depth_infinity;
 
-  cfg = svn_hash_gets(ctx->config, SVN_CONFIG_CATEGORY_CONFIG);
+  cfg = ctx->config
+           ? svn_hash_gets(ctx->config, SVN_CONFIG_CATEGORY_CONFIG)
+           : NULL;
   if (cfg)
     SVN_ERR(svn_config_get_bool(cfg, &no_unlock,
                                 SVN_CONFIG_SECTION_MISCELLANY,



Mime
View raw message