subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1702991 - /subversion/trunk/subversion/libsvn_subr/token.c
Date Mon, 14 Sep 2015 16:40:56 GMT
Author: rhuijben
Date: Mon Sep 14 16:40:56 2015
New Revision: 1702991

URL: http://svn.apache.org/r1702991
Log:
Following up on r1702974, undo change to token parser as APR already
handles the formatting of NULL for %s in errors.

* subversion/libsvn_subr/token.c
  (svn_token__from_word_err): Revert NULL handling.

Suggested by: ivan

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

Modified: subversion/trunk/subversion/libsvn_subr/token.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/token.c?rev=1702991&r1=1702990&r2=1702991&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/token.c (original)
+++ subversion/trunk/subversion/libsvn_subr/token.c Mon Sep 14 16:40:56 2015
@@ -64,7 +64,7 @@ svn_token__from_word_err(int *value,
   if (*value == SVN_TOKEN_UNKNOWN)
     return svn_error_createf(SVN_ERR_BAD_TOKEN, NULL,
                              _("Token '%s' is unrecognized"),
-                             word ? word : "(null)");
+                             word);
 
   return SVN_NO_ERROR;
 }



Mime
View raw message