You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/09/09 13:22:37 UTC
svn commit: r995382 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Author: stsp
Date: Thu Sep 9 11:22:37 2010
New Revision: 995382
URL: http://svn.apache.org/viewvc?rev=995382&view=rev
Log:
* subversion/libsvn_fs_fs/fs_fs.c
(svn_fs_fs__read_noderev): Use svn_cstring_atoi64() instead of apr_atoi64()
and svn_cstring_atoi() instead of atoi().
Modified:
subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=995382&r1=995381&r2=995382&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Thu Sep 9 11:22:37 2010
@@ -2217,7 +2217,10 @@ svn_fs_fs__read_noderev(node_revision_t
/* Read the 'count' field. */
value = apr_hash_get(headers, HEADER_COUNT, APR_HASH_KEY_STRING);
- noderev->predecessor_count = (value == NULL) ? 0 : atoi(value);
+ if (value)
+ SVN_ERR(svn_cstring_atoi(&noderev->predecessor_count, value));
+ else
+ noderev->predecessor_count = 0;
/* Get the properties location. */
value = apr_hash_get(headers, HEADER_PROPS, APR_HASH_KEY_STRING);
@@ -2308,7 +2311,10 @@ svn_fs_fs__read_noderev(node_revision_t
/* Get the mergeinfo count. */
value = apr_hash_get(headers, HEADER_MINFO_CNT, APR_HASH_KEY_STRING);
- noderev->mergeinfo_count = (value == NULL) ? 0 : apr_atoi64(value);
+ if (value)
+ SVN_ERR(svn_cstring_atoi64(&noderev->mergeinfo_count, value));
+ else
+ noderev->mergeinfo_count = 0;
/* Get whether *this* node has mergeinfo. */
value = apr_hash_get(headers, HEADER_MINFO_HERE, APR_HASH_KEY_STRING);