mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
access: Use g_strdup_printf() instead of virAsprintf()
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
492d7cb47a
commit
87af7ff8b7
@ -59,10 +59,8 @@ virAccessDriverPolkitFormatAction(const char *typename,
|
||||
char *actionid = NULL;
|
||||
size_t i;
|
||||
|
||||
if (virAsprintf(&actionid, "%s.%s.%s",
|
||||
VIR_ACCESS_DRIVER_POLKIT_ACTION_PREFIX,
|
||||
typename, permname) < 0)
|
||||
return NULL;
|
||||
actionid = g_strdup_printf("%s.%s.%s", VIR_ACCESS_DRIVER_POLKIT_ACTION_PREFIX,
|
||||
typename, permname);
|
||||
|
||||
for (i = 0; actionid[i]; i++)
|
||||
if (actionid[i] == '_')
|
||||
|
Loading…
x
Reference in New Issue
Block a user