tree-wide: propagate the error we got from strv_extend_xyz() to the caller
It's a bit sloppy to return -ENOMEM rather than the actual error we already returned in the first place (even though it's always going to be ENOMEM)
This commit is contained in:
@@ -1517,7 +1517,7 @@ int get_timezones(char ***ret) {
|
||||
/* Always include UTC */
|
||||
r = strv_extend(&zones, "UTC");
|
||||
if (r < 0)
|
||||
return -ENOMEM;
|
||||
return r;
|
||||
|
||||
strv_sort(zones);
|
||||
strv_uniq(zones);
|
||||
|
||||
Reference in New Issue
Block a user