You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rp...@apache.org on 2026/08/06 13:34:36 UTC

svn commit: r1936918 - apr/apr/trunk/dbd

Author: rpluem
Date: Thu Aug  6 13:34:36 2026
New Revision: 1936918

Log:
* We need to return const char *. No need to lose const'ness

Modified:
   apr/apr/trunk/dbd/apr_dbd_odbc.c

Modified: apr/apr/trunk/dbd/apr_dbd_odbc.c
==============================================================================
--- apr/apr/trunk/dbd/apr_dbd_odbc.c	Thu Aug  6 13:32:00 2026	(r1936917)
+++ apr/apr/trunk/dbd/apr_dbd_odbc.c	Thu Aug  6 13:34:36 2026	(r1936918)
@@ -1421,7 +1421,7 @@ static const char *odbc_escape(apr_pool_
 
     /* return the original if there are no single-quotes */
     if (!(sq = strchr(s, '\'')))
-        return (char *)s;
+        return s;
     /* count the single-quotes and allocate a new buffer */
     for (qcount = 1; (sq = strchr(sq + 1, '\'')); )
         qcount++;