svn commit: r1926279 - in /subversion/branches/utf8-cmdline-prototype/subversion/svn: shelf-cmd.c shelf2-cmd.c
[email protected] Mon, 09 Jun 2025 12:26:30 -0000
Newsgroups
gmane.comp.version-control.subversion.svn
Message-ID
<[email protected] >
Author: rinrab
Date: Mon Jun 9 12:26:29 2025
New Revision: 1926279
URL: http://svn.apache.org/viewvc?rev=1926279&view=rev
Log:
On the 'utf8-cmdline-prototype' branch: Following up to r1925836: copy arg
to result_pool in shelf::get_next_argument().
* subversion/svn/shelf-cmd.c,
subversion/svn/shelf2-cmd.c
(get_next_argument): Ditto.
Modified:
subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf-cmd.c
subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf2-cmd.c
Modified: subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf-cmd.c
URL: http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf-cmd.c?rev=1926279&r1=1926278&r2=1926279&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf-cmd.c (original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf-cmd.c Mon Jun 9 12:26:29 2025
@@ -72,7 +72,7 @@ get_next_argument(const char **arg,
apr_array_header_t *args;
SVN_ERR(svn_opt_parse_num_args(&args, os, 1, scratch_pool));
- *arg = APR_ARRAY_IDX(args, 0, const char *);
+ *arg = apr_pstrdup(result_pool, APR_ARRAY_IDX(args, 0, const char *));
return SVN_NO_ERROR;
}
Modified: subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf2-cmd.c
URL: http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf2-cmd.c?rev=1926279&r1=1926278&r2=1926279&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf2-cmd.c (original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svn/shelf2-cmd.c Mon Jun 9 12:26:29 2025
@@ -72,7 +72,7 @@ get_next_argument(const char **arg,
apr_array_header_t *args;
SVN_ERR(svn_opt_parse_num_args(&args, os, 1, scratch_pool));
- *arg = APR_ARRAY_IDX(args, 0, const char *);
+ *arg = apr_pstrdup(result_pool, APR_ARRAY_IDX(args, 0, const char *));
return SVN_NO_ERROR;
}