You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <pm...@uklinux.net> on 2001/11/06 00:16:17 UTC
[PATCH] SEGV when propget of non-existent property
'svn propget' SEGV's when asked for a property that doesn't exist.
* subversion/libsvn_client/.svn/text-base/prop_commands.c:
svn_client_propget(): handle non-existent property
Index: subversion/libsvn_client/prop_commands.c
===================================================================
--- subversion/libsvn_client/.svn/text-base/prop_commands.c Wed Oct 31 19:31:32 2001
+++ subversion/libsvn_client/prop_commands.c Tue Nov 6 00:09:31 2001
@@ -183,7 +183,8 @@
{
svn_stringbuf_t *propval;
SVN_ERR (svn_wc_prop_get (&propval, propname, target, pool));
- apr_table_set(prop_table, target->data, propval->data);
+ if (propval)
+ apr_table_set(prop_table, target->data, propval->data);
}
*props = prop_table;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] SEGV when propget of non-existent property
Posted by cm...@collab.net.
Philip Martin <pm...@uklinux.net> writes:
> 'svn propget' SEGV's when asked for a property that doesn't exist.
>
> * subversion/libsvn_client/.svn/text-base/prop_commands.c:
> svn_client_propget(): handle non-existent property
Patch applied, see revision 404.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org