[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r16295 - in trunk/subversion: libsvn_fs_fs libsvn_repos

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-09-27 13:45:54 CEST

maxb@tigris.org wrote:

>Author: maxb
>Date: Tue Sep 27 05:36:16 2005
>New Revision: 16295
>
>

>@@ -344,17 +342,25 @@
> const char *dst_path,
> apr_pool_t *pool)
> {
>- const char *src_subdir, *dst_subdir, *format_path;
>+ const char *src_subdir, *dst_subdir;
> svn_revnum_t youngest, rev;
> apr_pool_t *iterpool;
> svn_node_kind_t kind;
>+ int format;
>+ svn_error_t *err;
>
>- /* Copy the format file if it exists -- it is assumed to be format 1
>- if it does not exist. */
>- format_path = svn_path_join (src_path, PATH_FORMAT, pool);
>- SVN_ERR (svn_io_check_path (format_path, &kind, pool));
>- if (kind == svn_node_file)
>- SVN_ERR (svn_io_dir_file_copy (src_path, dst_path, PATH_FORMAT, pool));
>+ /* Check format to be sure we know how to hotcopy this FS. */
>+ SVN_ERR (svn_io_read_version_file
>+ (&format, svn_path_join (src_path, PATH_FORMAT, pool), pool));
>+ if (err && APR_STATUS_IS_ENOENT (err->apr_err))
>
>
subversion/libsvn_fs_fs/fs_fs.c(355) : warning C4700: local variable 'err' used without having been initialized

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 27 14:44:50 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.