Put(ctdlconfig, key, key_len, strdup(value), NULL);
// Also write it to the config database
-
int dbv_size = key_len + value_len + 2;
char *dbv = malloc(dbv_size);
strcpy(dbv, key);
// Then look in the database.
cdb = cdb_fetch(CDB_CONFIG, key, key_len);
- if (cdb.ptr == NULL) { // nope, not there either.
+ if (cdb.ptr == NULL) { // nope, not there either.
return(NULL);
}