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

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <178602312071.3029930.16269343845630657156@svn03-he-fi>
Author: rpluem
Date: Thu Aug  6 13:32:00 2026
New Revision: 1936917

Log:
* Fix const'ness similar to r1936843

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

Modified: apr/apr/trunk/dbd/apr_dbd_oracle.c
==============================================================================
--- apr/apr/trunk/dbd/apr_dbd_oracle.c	Thu Aug  6 13:20:05 2026	(r1936916)
+++ apr/apr/trunk/dbd/apr_dbd_oracle.c	Thu Aug  6 13:32:00 2026	(r1936917)
@@ -849,19 +849,20 @@ static int dbd_oracle_query(apr_dbd_t *s
 static const char *dbd_oracle_escape(apr_pool_t *pool, const char *arg,
                                      apr_dbd_t *sql)
 {
-    char *newstr, *src, *dst, *sq;
+    char *newstr, *dst;
+    const char *src, *sq;
     int qcount;
 
     /* return the original if there are no single-quotes */
     if (!(sq = strchr(arg, '\'')))
-        return (char *)arg;
+        return arg;
     /* count the single-quotes and allocate a new buffer */
     for (qcount = 1; (sq = strchr(sq + 1, '\'')); )
         qcount++;
     newstr = apr_palloc(pool, strlen(arg) + qcount + 1);
 
     /* move chars, doubling all single-quotes */
-    src = (char *)arg;
+    src = arg;
     for (dst = newstr; *src; src++) {
         if ((*dst++ = *src) == '\'')
             *dst++ = '\'';
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.