diff options
author | fangxiuning <53254947+JackFangXN@users.noreply.github.com> | 2020-08-29 23:21:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 23:21:20 +0200 |
commit | 6d95e7d9b263c94e94704e3125cb790840b76ca2 (patch) | |
tree | 576a963001421ba1926de7555540aa4665f232cb /src/libsystemd | |
parent | src/shared/dissect-image.c: fix build without blkdid (#16901) (diff) | |
download | systemd-6d95e7d9b263c94e94704e3125cb790840b76ca2.tar.xz systemd-6d95e7d9b263c94e94704e3125cb790840b76ca2.zip |
tree-wide: drop pointless zero initialization (#16900)
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-hwdb/hwdb-util.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-resolve/test-resolve.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-hwdb/hwdb-util.c b/src/libsystemd/sd-hwdb/hwdb-util.c index 5c7521695e..1b642b6851 100644 --- a/src/libsystemd/sd-hwdb/hwdb-util.c +++ b/src/libsystemd/sd-hwdb/hwdb-util.c @@ -477,7 +477,7 @@ static int import_file(struct trie *trie, const char *filename, uint16_t file_pr _cleanup_fclose_ FILE *f = NULL; _cleanup_strv_free_ char **match_list = NULL; uint32_t line_number = 0; - int r = 0, err; + int r, err; f = fopen(filename, "re"); if (!f) diff --git a/src/libsystemd/sd-resolve/test-resolve.c b/src/libsystemd/sd-resolve/test-resolve.c index 38a78ee8a2..d2798e7042 100644 --- a/src/libsystemd/sd-resolve/test-resolve.c +++ b/src/libsystemd/sd-resolve/test-resolve.c @@ -53,7 +53,7 @@ static int getnameinfo_handler(sd_resolve_query *q, int ret, const char *host, c int main(int argc, char *argv[]) { _cleanup_(sd_resolve_query_unrefp) sd_resolve_query *q1 = NULL, *q2 = NULL; _cleanup_(sd_resolve_unrefp) sd_resolve *resolve = NULL; - int r = 0; + int r; struct addrinfo hints = { .ai_family = PF_UNSPEC, |