bus/policy: simplify variant reader
Reduce the number of calls into c_dvar_read(). Merge consecutive calls
into a single one.
@@ -605,14 +605,12 @@ int policy_registry_import(PolicyRegistry *registry, CDVar *v) {
return error_fold(r);
}
- c_dvar_read(v, "]b", &apparmor);
+ c_dvar_read(v, "]b)>", &apparmor);
if (apparmor)
/* XXX: AppArmor is currently not supported. */
return POLICY_E_INVALID;
- c_dvar_read(v, ")>");
-
r = c_dvar_get_poison(v);
if (r)
return POLICY_E_INVALID;
