subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1818309 - /subversion/trunk/subversion/libsvn_client/patch.c
Date Fri, 15 Dec 2017 17:36:45 GMT
Author: julianfoad
Date: Fri Dec 15 17:36:45 2017
New Revision: 1818309

URL: http://svn.apache.org/viewvc?rev=1818309&view=rev
Log:
* subversion/libsvn_client/patch.c
  (reject_hunk): Don't ignore error return from svn_stream_printf().

Found by: danielsh
  using tools/dev/warn-unused-result.sh

Modified:
    subversion/trunk/subversion/libsvn_client/patch.c

Modified: subversion/trunk/subversion/libsvn_client/patch.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/patch.c?rev=1818309&r1=1818308&r2=1818309&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/patch.c (original)
+++ subversion/trunk/subversion/libsvn_client/patch.c Fri Dec 15 17:36:45 2017
@@ -2145,8 +2145,8 @@ reject_hunk(patch_target_t *target, targ
   if (prop_name)
     {
       /* ### Print 'Added', 'Deleted' or 'Modified' instead of 'Property'. */
-      svn_stream_printf(target->reject_stream,
-                        pool, "Property: %s" APR_EOL_STR, prop_name);
+      SVN_ERR(svn_stream_printf(target->reject_stream,
+                                pool, "Property: %s" APR_EOL_STR, prop_name));
       atat = prop_atat;
     }
   else



Mime
View raw message