chiark / gitweb /
udev: net_setup - fix warning
authorTom Gundersen <teg@jklm.no>
Tue, 16 Dec 2014 20:49:06 +0000 (21:49 +0100)
committerTom Gundersen <teg@jklm.no>
Tue, 16 Dec 2014 21:54:04 +0000 (22:54 +0100)
src/udev/udev-builtin-net_setup_link.c

index 87d10bf..55b6241 100644 (file)
@@ -27,7 +27,7 @@ static link_config_ctx *ctx = NULL;
 
 static int builtin_net_setup_link(struct udev_device *dev, int argc, char **argv, bool test) {
         _cleanup_free_ char *driver = NULL;
-        const char *name;
+        const char *name = NULL;
         link_config *link;
         int r;