380 |
newroot = xmalloc(sizeof(cvsroot_t)); |
newroot = xmalloc(sizeof(cvsroot_t)); |
381 |
|
|
382 |
newroot->original = NULL; |
newroot->original = NULL; |
383 |
|
newroot->directory = NULL; |
384 |
newroot->method = null_method; |
newroot->method = null_method; |
385 |
newroot->isremote = false; |
newroot->isremote = false; |
386 |
#ifdef CLIENT_SUPPORT |
#ifdef CLIENT_SUPPORT |
390 |
newroot->cvs_rsh = NULL; |
newroot->cvs_rsh = NULL; |
391 |
newroot->cvs_server = NULL; |
newroot->cvs_server = NULL; |
392 |
newroot->port = 0; |
newroot->port = 0; |
|
newroot->directory = NULL; |
|
393 |
newroot->proxy_hostname = NULL; |
newroot->proxy_hostname = NULL; |
394 |
newroot->proxy_port = 0; |
newroot->proxy_port = 0; |
395 |
newroot->redirect = true; /* Advertise Redirect support */ |
newroot->redirect = true; /* Advertise Redirect support */ |
400 |
|
|
401 |
|
|
402 |
|
|
403 |
/* Dispose of a cvsroot_t and its component parts */ |
/* Dispose of a cvsroot_t and its component parts. Most code should not need |
404 |
void |
* to call this function, as parse_cvsroot is now caching parsed roots. |
405 |
|
*/ |
406 |
|
static void |
407 |
free_cvsroot_t (cvsroot_t *root) |
free_cvsroot_t (cvsroot_t *root) |
408 |
{ |
{ |
409 |
|
assert (root); |
410 |
if (root->original != NULL) |
if (root->original != NULL) |
411 |
free (root->original); |
free (root->original); |
412 |
if (root->directory != NULL) |
if (root->directory != NULL) |