Merge pull request #16833 from JackFangXN/master
analyze-verify: drop pointless zero initialization
This commit is contained in:
commit
47d0644e1a
|
@ -223,7 +223,7 @@ int verify_units(char **filenames, UnitFileScope scope, bool check_man, bool run
|
||||||
_cleanup_(manager_freep) Manager *m = NULL;
|
_cleanup_(manager_freep) Manager *m = NULL;
|
||||||
Unit *units[strv_length(filenames)];
|
Unit *units[strv_length(filenames)];
|
||||||
_cleanup_free_ char *var = NULL;
|
_cleanup_free_ char *var = NULL;
|
||||||
int r = 0, k, i, count = 0;
|
int r, k, i, count = 0;
|
||||||
char **filename;
|
char **filename;
|
||||||
|
|
||||||
if (strv_isempty(filenames))
|
if (strv_isempty(filenames))
|
||||||
|
|
|
@ -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) {
|
static int list_dependencies_one(sd_bus *bus, const char *name, unsigned level, char ***units, unsigned branches) {
|
||||||
_cleanup_strv_free_ char **deps = NULL;
|
_cleanup_strv_free_ char **deps = NULL;
|
||||||
char **c;
|
char **c;
|
||||||
int r = 0;
|
int r;
|
||||||
usec_t service_longest = 0;
|
usec_t service_longest = 0;
|
||||||
int to_print = 0;
|
int to_print = 0;
|
||||||
struct unit_times *times;
|
struct unit_times *times;
|
||||||
|
|
Loading…
Reference in a new issue