apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r586178 - /apr/apr-util/branches/1.2.x/xlate/xlate.c
Date Thu, 18 Oct 2007 23:30:17 GMT
Author: wrowe
Date: Thu Oct 18 16:30:16 2007
New Revision: 586178

URL: http://svn.apache.org/viewvc?rev=586178&view=rev
Log:
Fix crash in test, anticipate some output buff with no input buff

Backports: 586177

Modified:
    apr/apr-util/branches/1.2.x/xlate/xlate.c

Modified: apr/apr-util/branches/1.2.x/xlate/xlate.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/xlate/xlate.c?rev=586178&r1=586177&r2=586178&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/xlate/xlate.c (original)
+++ apr/apr-util/branches/1.2.x/xlate/xlate.c Thu Oct 18 16:30:16 2007
@@ -325,7 +325,7 @@
 
              /* Sometimes, iconv is not good about setting errno. */
             case 0:
-                if (*inbytes_left)
+                if (inbytes_left && *inbytes_left)
                     status = APR_INCOMPLETE;
                 break;
 



Mime
View raw message