Author: rinrab
Date: Fri Jun 27 21:42:17 2025
New Revision: 1926783
URL: http://svn.apache.org/viewvc?rev=1926783&view=rev
Log:
On the 'utf8-cmdline-prototype' branch:
* subversion/svn/svn.c
(native_eol, changelists): Copy to strings to pool when initialising
opt_state, to follow style of the rest of the file.
Modified:
subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c
Modified: subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c
URL:
http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c?rev=1926783&r1=1926782&r2=1926783&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c (original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c Fri Jun 27
21:42:17 2025
@@ -2567,7 +2567,7 @@ sub_main(int *exit_code,
case opt_native_eol:
if ( !strcmp("LF", utf8_opt_arg) || !strcmp("CR", utf8_opt_arg) ||
!strcmp("CRLF", utf8_opt_arg))
- opt_state.native_eol = utf8_opt_arg;
+ opt_state.native_eol = apr_pstrdup(pool, utf8_opt_arg);
else
{
return svn_error_createf(SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
@@ -2593,7 +2593,7 @@ sub_main(int *exit_code,
return svn_error_create(SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
_("Changelist names must not be empty"));
}
- svn_hash_sets(changelists, utf8_opt_arg, (void *)1);
+ svn_hash_sets(changelists, apr_pstrdup(pool, utf8_opt_arg), (void *)1);
break;
case opt_keep_changelists:
opt_state.keep_changelists = TRUE;