You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2017/12/15 17:36:45 UTC

svn commit: r1818309 - /subversion/trunk/subversion/libsvn_client/patch.c

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