mirror of
https://github.com/lxsang/ant-http
synced 2025-07-24 17:49:46 +02:00
fix database handle
This commit is contained in:
@ -19,8 +19,9 @@ sqldb __getdb(char *name)
|
||||
int plen = strlen(name)+strlen(__plugin__.dbpath)+4;
|
||||
char* path = (char*) malloc(plen*sizeof(char));
|
||||
strcpy(path,__plugin__.dbpath);
|
||||
strcat(path,__plugin__.name);
|
||||
strcat(path,name);
|
||||
strcat(path,".db");
|
||||
LOG("data base: %s\n", path);
|
||||
sqldb ret = (sqldb)database(path);
|
||||
free(path);
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user