[systemd-commits] src/libsystemd src/udev

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Sun Apr 20 15:04:44 PDT 2014


 src/libsystemd/sd-rtnl/rtnl-message.c |    2 +-
 src/udev/net/link-config.c            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6e37cd2f4af8928d905203108a4331e375d7127c
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Mon Apr 21 00:02:35 2014 +0200

    silence warnings

diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c
index a5b09ed..3576274 100644
--- a/src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/src/libsystemd/sd-rtnl/rtnl-message.c
@@ -1092,7 +1092,7 @@ int socket_read_message(sd_rtnl *rtnl) {
         struct nlmsghdr *new_msg;
         size_t len;
         int r;
-        unsigned i;
+        unsigned i = 0;
 
         assert(rtnl);
         assert(rtnl->rbuffer);
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 7be4d24..8234598 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -140,7 +140,7 @@ void link_config_ctx_free(link_config_ctx *ctx) {
 
 static int load_link(link_config_ctx *ctx, const char *filename) {
         _cleanup_free_ link_config *link = NULL;
-        _cleanup_fclose_ FILE *file;
+        _cleanup_fclose_ FILE *file = NULL;
         int r;
 
         assert(ctx);



More information about the systemd-commits mailing list