subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james...@apache.org
Subject svn commit: r1818803 - /subversion/trunk/subversion/libsvn_subr/sysinfo.c
Date Wed, 20 Dec 2017 14:41:51 GMT
Author: jamessan
Date: Wed Dec 20 14:41:51 2017
New Revision: 1818803

URL: http://svn.apache.org/viewvc?rev=1818803&view=rev
Log:
* subversion/libsvn_subr/sysinfo.c
  (svn_sysinfo__linked_libs): Move lz4_version declaration to start of function

Modified:
    subversion/trunk/subversion/libsvn_subr/sysinfo.c

Modified: subversion/trunk/subversion/libsvn_subr/sysinfo.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/sysinfo.c?rev=1818803&r1=1818802&r2=1818803&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/sysinfo.c (original)
+++ subversion/trunk/subversion/libsvn_subr/sysinfo.c Wed Dec 20 14:41:51 2017
@@ -128,6 +128,7 @@ svn_sysinfo__linked_libs(apr_pool_t *poo
 {
   svn_version_ext_linked_lib_t *lib;
   apr_array_header_t *array = apr_array_make(pool, 7, sizeof(*lib));
+  int lz4_version = svn_lz4__runtime_version();
 
   lib = &APR_ARRAY_PUSH(array, svn_version_ext_linked_lib_t);
   lib->name = "APR";
@@ -171,7 +172,6 @@ svn_sysinfo__linked_libs(apr_pool_t *poo
   lib->name = "LZ4";
   lib->compiled_version = apr_pstrdup(pool, svn_lz4__compiled_version());
 
-  int lz4_version = svn_lz4__runtime_version();
   lib->runtime_version = apr_psprintf(pool, "%d.%d.%d",
                                       lz4_version / 100 / 100,
                                       (lz4_version / 100) % 100,



Mime
View raw message