subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1362569 - /subversion/trunk/subversion/libsvn_fs/fs-loader.c
Date Tue, 17 Jul 2012 16:59:59 GMT
Author: philip
Date: Tue Jul 17 16:59:59 2012
New Revision: 1362569

URL: http://svn.apache.org/viewvc?rev=1362569&view=rev
Log:
* subversion/libsvn_fs/fs-loader.c (load_module): Use pointer arithmetic.

Suggested by: blair

Modified:
    subversion/trunk/subversion/libsvn_fs/fs-loader.c

Modified: subversion/trunk/subversion/libsvn_fs/fs-loader.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs/fs-loader.c?rev=1362569&r1=1362568&r2=1362569&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs/fs-loader.c (original)
+++ subversion/trunk/subversion/libsvn_fs/fs-loader.c Tue Jul 17 16:59:59 2012
@@ -110,12 +110,12 @@ load_module(fs_init_func_t *initfunc, co
     const char *libname;
     const char *funcname;
     apr_status_t status;
-    apr_size_t i;
+    const char *p;
 
     /* Demand a simple alphanumeric name so that the generated DSO
        name is sensible. */
-    for (i = 0; i < strlen(name); ++i)
-      if (!svn_ctype_isalnum(name[i]))
+    for (p = name; *p; ++p)
+      if (!svn_ctype_isalnum(*p))
         return svn_error_createf(SVN_ERR_FS_UNKNOWN_FS_TYPE, NULL,
                                  _("Invalid name for FS type '%s'"),
                                  name);



Mime
View raw message