svn commit: r1936918 - apr/apr/trunk/dbd
| Newsgroups | gmane.comp.apache.apr.cvs |
|---|---|
| Message-ID | <178602327682.3032233.12814299407168745477@svn03-he-fi> |
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++;