summaryrefslogtreecommitdiff
path: root/cvs_tree.c
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2004-10-02 14:25:05 +0000
committerStefan Siegl <stesie@brokenpipe.de>2004-10-02 14:25:05 +0000
commit06a9d27b1928ff1b3229b4562e73ea3242df7c8e (patch)
tree2afe36c8f3aecfe7069f10ad0a35669c5dba8260 /cvs_tree.c
parent2f5948e12ff00e67d92d812b7c825aa058cf6d48 (diff)
initialize netnode's node element to NULL
Diffstat (limited to 'cvs_tree.c')
-rw-r--r--cvs_tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cvs_tree.c b/cvs_tree.c
index de854e206..cecabde9e 100644
--- a/cvs_tree.c
+++ b/cvs_tree.c
@@ -251,6 +251,7 @@ cvs_tree_enqueue(struct netnode *dir, const char *path)
new->parent = parent;
new->revision = NULL; /* mark as a directory */
new->fileno = next_fileno ++;
+ new->node = NULL;
rwlock_init(&new->lock);
@@ -336,6 +337,7 @@ cvs_tree_enqueue_file(struct netnode *cwd,
entry->child = NULL;
entry->parent = cwd;
entry->fileno = next_fileno ++;
+ entry->node = NULL;
/* create lock entry for our new netnode, as it is not linked
* to somewhere and this is the only thread to update tree info,