apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r355797 - /apr/apr-iconv/branches/0.9.x/lib/iconv.c
Date Sat, 10 Dec 2005 23:13:39 GMT
Author: wrowe
Date: Sat Dec 10 15:13:36 2005
New Revision: 355797

URL: http://svn.apache.org/viewcvs?rev=355797&view=rev
Log:

  Backport 355796, ugly error comparison clause.

Modified:
    apr/apr-iconv/branches/0.9.x/lib/iconv.c

Modified: apr/apr-iconv/branches/0.9.x/lib/iconv.c
URL: http://svn.apache.org/viewcvs/apr/apr-iconv/branches/0.9.x/lib/iconv.c?rev=355797&r1=355796&r2=355797&view=diff
==============================================================================
--- apr/apr-iconv/branches/0.9.x/lib/iconv.c (original)
+++ apr/apr-iconv/branches/0.9.x/lib/iconv.c Sat Dec 10 15:13:36 2005
@@ -123,7 +123,7 @@
             const char *from_charset, apr_pool_t *ctx, apr_iconv_t **res)
 {
 	*res = iconv_open(to_charset, from_charset);
-	if (*res == (apr_size_t) -1)
+	if (*res == (apr_iconv_t *) -1)
 		return apr_get_os_error();
 	return APR_SUCCESS;
 }



Mime
View raw message