Merge pull request #16833 from JackFangXN/master

analyze-verify: drop pointless zero initialization
This commit is contained in:
Lennart Poettering 2020-08-25 13:20:11 +02:00 committed by GitHub
commit 47d0644e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ int verify_units(char **filenames, UnitFileScope scope, bool check_man, bool run
_cleanup_(manager_freep) Manager *m = NULL;
Unit *units[strv_length(filenames)];
_cleanup_free_ char *var = NULL;
int r = 0, k, i, count = 0;
int r, k, i, count = 0;
char **filename;
if (strv_isempty(filenames))

View File

@ -899,7 +899,7 @@ static bool times_in_range(const struct unit_times *times, const struct boot_tim
static int list_dependencies_one(sd_bus *bus, const char *name, unsigned level, char ***units, unsigned branches) {
_cleanup_strv_free_ char **deps = NULL;
char **c;
int r = 0;
int r;
usec_t service_longest = 0;
int to_print = 0;
struct unit_times *times;