rem: iname.s = &credentials[i];
add: iname.s = &credentials[i - 1];
context: static int generate_avps(db_res_t* result){	int i;	int_str iname, ivalue;	str value;	for (i = 1; i <= credentials_n; i++) {		value.s = (char*)VAL_STRING(&(result->rows[0].values[i]));		if (VAL_NULL(&(result->rows[0].values[i]))		    || value.s == NULL) {			continue;		}				iname.s = &credentials[i];		value.len = strlen(value.s);		ivalue.s = &value;		if (add_avp(AVP_NAME_STR | AVP_VAL_STR, iname, ivalue) < 0) {			LOG(L_ERR, "generate_avps: Error while creating AVPs\n");			return -1;		}		DBG("generate_avps: set string AVP \'%.*s = %.*s\'\n",		    iname.s->len, ZSW(iname.s->s), value.len, ZSW(value.s));	}	return 0;}