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

[email protected]
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++;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.