subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1467591 - /subversion/trunk/subversion/svnrdump/svnrdump.c
Date Sat, 13 Apr 2013 10:58:38 GMT
Author: stsp
Date: Sat Apr 13 10:58:37 2013
New Revision: 1467591

URL: http://svn.apache.org/r1467591
Log:
* subversion/svnrdump/svnrdump.c
  (main): Remove pointless checks for a NULL subcommand which were performed
    after a non-NULL subcommand had already been ensured by preceding code.

Modified:
    subversion/trunk/subversion/svnrdump/svnrdump.c

Modified: subversion/trunk/subversion/svnrdump/svnrdump.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/svnrdump.c?rev=1467591&r1=1467590&r2=1467591&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/svnrdump.c (original)
+++ subversion/trunk/subversion/svnrdump/svnrdump.c Sat Apr 13 10:58:37 2013
@@ -1077,14 +1077,14 @@ main(int argc, const char **argv)
         }
     }
 
-  if (subcommand && strcmp(subcommand->name, "--version") == 0)
+  if (strcmp(subcommand->name, "--version") == 0)
     {
       SVNRDUMP_ERR(version(argv[0], opt_baton->quiet, pool));
       svn_pool_destroy(pool);
       exit(EXIT_SUCCESS);
     }
 
-  if (subcommand && strcmp(subcommand->name, "help") == 0)
+  if (strcmp(subcommand->name, "help") == 0)
     {
       SVNRDUMP_ERR(help_cmd(os, opt_baton, pool));
       svn_pool_destroy(pool);



Mime
View raw message