{
const char *ret = NULL;
- if (attr && attr->override_attr->ctrl_url) {
- ret = attr->raw_override_ctrl_url;
+ if (!attr || !attr->override_attr) {
+ goto end;
}
+ ret = attr->raw_override_ctrl_url;
+end:
return ret;
}
{
const char *ret = NULL;
- if (attr && attr->override_attr->data_url) {
- ret = attr->raw_override_data_url;
+ if (!attr || !attr->override_attr) {
+ goto end;
}
+ ret = attr->raw_override_data_url;
+end:
return ret;
}
{
const char *ret = NULL;
- if (attr && (attr->override_attr->path_url ||
+ if (!attr || !attr->override_attr) {
+ goto end;
+ }
+
+ if ((attr->override_attr->path_url ||
(attr->override_attr->ctrl_url &&
attr->override_attr->data_url))) {
ret = attr->raw_override_url;
}
-
+end:
return ret;
}