/[cvs]/ccvs/src/root.c
ViewVC logotype

Diff of /ccvs/src/root.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.117 by dprice, Sun Sep 4 02:38:06 2005 UTC revision 1.118 by dprice, Sun Sep 4 05:16:00 2005 UTC
# Line 380  new_cvsroot_t (void) Line 380  new_cvsroot_t (void)
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
# Line 389  new_cvsroot_t (void) Line 390  new_cvsroot_t (void)
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 */
# Line 400  new_cvsroot_t (void) Line 400  new_cvsroot_t (void)
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)

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26