mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
virCgroupAddTaskStrController: s/-1/-ENOMEM/
Within whole vircgroup.c we 'return -errno', e.g. 'return -ENOMEM'. However, in this specific function virCgroupAddTaskStrController we weren't returning -ENOMEM but -1 despite fact that later in the function we are returning one of errno values indeed.
This commit is contained in:
parent
677981d1be
commit
b43bb98a31
@ -1028,7 +1028,7 @@ static int virCgroupAddTaskStrController(virCgroupPtr group,
|
||||
char *endp;
|
||||
|
||||
if (!(str = strdup(pidstr)))
|
||||
return -1;
|
||||
return -ENOMEM;
|
||||
|
||||
cur = str;
|
||||
while (*cur != '\0') {
|
||||
|
Loading…
Reference in New Issue
Block a user