Author: stsp
Date: Tue Jul 12 14:24:58 2011
New Revision: 1145606

URL: http://svn.apache.org/viewvc?rev=1145606&view=rev
Log:
stats++
* subversion/libsvn_subr/magic.c
  (svn_magic__detect_binary_mimetype): Fix indentation. No functional change.

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

Modified: subversion/trunk/subversion/libsvn_subr/magic.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/magic.c?rev=1145606&r1=1145605&r2=1145606&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/magic.c (original)
+++ subversion/trunk/subversion/libsvn_subr/magic.c Tue Jul 12 14:24:58 2011
@@ -122,35 +122,35 @@ svn_magic__detect_binary_mimetype(const 
           if (strncmp(magic_mimetype, "text/", 5) == 0)
             magic_mimetype = NULL;
           else
-           {
-             svn_error_t *err;
+            {
+              svn_error_t *err;
 #ifndef MAGIC_MIME_TYPE
-             char *p;
+              char *p;
 
-             /* Strip off trailing stuff like " charset=ascii". */
-             p = strchr(magic_mimetype, ' ');
-             if (p)
-              *p = '\0';
+              /* Strip off trailing stuff like " charset=ascii". */
+              p = strchr(magic_mimetype, ' ');
+              if (p)
+                *p = '\0';
 #endif
-            /* Make sure we got a valid mime type. */
-            err = svn_mime_type_validate(magic_mimetype, scratch_pool);
-            if (err)
-              {
-                if (err->apr_err == SVN_ERR_BAD_MIME_TYPE)
-                  {
-                    svn_error_clear(err);
-                    magic_mimetype = NULL;
-                  }
-                else
-                  return svn_error_trace(err);
-              }
-            else
-              {
-                /* The string is allocated from memory managed by libmagic
-                 * so we must copy it to the result pool. */
-                magic_mimetype = apr_pstrdup(result_pool, magic_mimetype);
-              }
-           }
+              /* Make sure we got a valid mime type. */
+              err = svn_mime_type_validate(magic_mimetype, scratch_pool);
+              if (err)
+                {
+                  if (err->apr_err == SVN_ERR_BAD_MIME_TYPE)
+                    {
+                      svn_error_clear(err);
+                      magic_mimetype = NULL;
+                    }
+                  else
+                    return svn_error_trace(err);
+                }
+              else
+                {
+                  /* The string is allocated from memory managed by libmagic
+                   * so we must copy it to the result pool. */
+                  magic_mimetype = apr_pstrdup(result_pool, magic_mimetype);
+                }
+            }
         }
     }
 #endif


Reply via email to