--- src/db_disk.c.orig 2003-01-16 11:37:34.000000000 +0100
+++ src/db_disk.c 2003-09-09 12:58:45.000000000 +0200
@@ -178,7 +178,8 @@
/* root needs special handling */
if(!root_handled){
- fullname="/";
+ fullname=malloc(1+1);
+ strcpy(fullname,"/");
add=check_rxtree(fullname,conf->tree,&attr);
error(240,"%s match=%d, tree=%i, attr=%i\n",fullname, add,conf->tree,attr);
@@ -200,6 +201,8 @@
fil=NULL;
}
}
+ if (!add)
+ free(fullname);
root_handled=1;
}
rec