[systemd-commits] 2 commits - src/bus-driverd src/udev
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Tue Dec 17 07:10:32 PST 2013
src/bus-driverd/bus-driverd.c | 1 -
src/udev/net/link-config.c | 3 +++
2 files changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 187dc6e554f2d5b4b5a3bee72c73ff5df6418aa6
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Dec 17 16:09:52 2013 +0100
udev link-config: add asserts to silence scan-build
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 1a9d780..9b91d9d 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -152,6 +152,9 @@ static int load_link(link_config_ctx *ctx, const char *filename) {
_cleanup_fclose_ FILE *file;
int r;
+ assert(ctx);
+ assert(filename);
+
file = fopen(filename, "re");
if (!file) {
if (errno == ENOENT)
commit 6a70535669f9016056c1ad8bcb21e1fd14c2141a
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Dec 17 16:07:00 2013 +0100
bus: removed unused variable in driverd
acked by Daniel Mack
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index bf448cd..11bd2f9 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -185,7 +185,6 @@ static int driver_get_id(sd_bus *bus, sd_bus_message *m, void *userdata, sd_bus_
static int driver_get_name_owner(sd_bus *bus, sd_bus_message *m, void *userdata, sd_bus_error *error) {
_cleanup_bus_creds_unref_ sd_bus_creds *creds = NULL;
- _cleanup_free_ char *owner = NULL;
char *arg0;
int r;
More information about the systemd-commits
mailing list