version 1.33, 2006/06/16 14:07:42 |
version 1.34, 2007/01/18 22:52:23 |
|
|
* at the first position again. |
* at the first position again. |
*/ |
*/ |
TAILQ_FOREACH(root, &cvs_rcache, root_cache) { |
TAILQ_FOREACH(root, &cvs_rcache, root_cache) { |
if (strcmp(str, root->cr_str) == 0) { |
if (root->cr_str != NULL && strcmp(str, root->cr_str) == 0) { |
TAILQ_REMOVE(&cvs_rcache, root, root_cache); |
TAILQ_REMOVE(&cvs_rcache, root, root_cache); |
TAILQ_INSERT_HEAD(&cvs_rcache, root, root_cache); |
TAILQ_INSERT_HEAD(&cvs_rcache, root, root_cache); |
root->cr_ref++; |
root->cr_ref++; |