char *vhostID; char *vhostDIR; char *fValue; vhostDIR = g_hash_table_lookup(vhost_table, con->uri.authority->ptr); if (vhostDIR == NULL) { fValue = PQgetvalue(result, 0, 0); g_hash_table_insert(vhost_table, con->uri.authority->ptr , fValue); } else { log_error_write(srv, __FILE__, __LINE__, "ss", " The buffered docroot isssss :", vhostDIR); buffer_copy_string(docroot, vhostDIR); }