You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yoshiki Hayashi <yo...@xemacs.org> on 2001/02/19 02:09:46 UTC
[PATCH] svn_path_is_empty
My first real bug fix. :-)
(svn_path_is_empty): Construct current dir correctly.
Index: path.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_subr/path.c,v
retrieving revision 1.31
diff -u -r1.31 path.c
--- path.c 2001/02/12 16:53:23 1.31
+++ path.c 2001/02/19 02:06:30
@@ -187,8 +187,8 @@
char buf[3];
buf[0] = '.';
- buf[0] = dirsep;
- buf[0] = '\0';
+ buf[1] = dirsep;
+ buf[2] = '\0';
return ((path == NULL)
|| (svn_string_isempty (path))
--
Yoshiki Hayashi
Re: [PATCH] svn_path_is_empty
Posted by Greg Stein <gs...@lyra.org>.
Applied! Thanks!
Cheers,
-g
On Mon, Feb 19, 2001 at 11:09:46AM +0900, Yoshiki Hayashi wrote:
> My first real bug fix. :-)
>
> (svn_path_is_empty): Construct current dir correctly.
>
> Index: path.c
> ===================================================================
> RCS file: /cvs/subversion/subversion/libsvn_subr/path.c,v
> retrieving revision 1.31
> diff -u -r1.31 path.c
> --- path.c 2001/02/12 16:53:23 1.31
> +++ path.c 2001/02/19 02:06:30
> @@ -187,8 +187,8 @@
>
> char buf[3];
> buf[0] = '.';
> - buf[0] = dirsep;
> - buf[0] = '\0';
> + buf[1] = dirsep;
> + buf[2] = '\0';
>
> return ((path == NULL)
> || (svn_string_isempty (path))
>
>
> --
> Yoshiki Hayashi
--
Greg Stein, http://www.lyra.org/