git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1454 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2005/04/06 23:13:09... | ... |
@@ -725,6 +725,7 @@ static int cli_loadmd(FILE *fd, struct cl_node **root, unsigned int *signo, int |
725 | 725 |
*root = (struct cl_node *) cli_calloc(1, sizeof(struct cl_node)); |
726 | 726 |
if(!*root) |
727 | 727 |
return CL_EMEM; |
728 |
+ (*root)->refcount = 1; |
|
728 | 729 |
} |
729 | 730 |
|
730 | 731 |
while(fgets(buffer, FILEBUFF, fd)) { |