discover/udev: copy dev->device path from udev devnode
[petitboot] / discover / pxe-parser.c
index bc07a13c54b1ff8eb9884fe30de5977b1d04e881..811679dd2a95f7c9478e0f560b72ef25c61dbc08 100644 (file)
@@ -132,6 +132,8 @@ static int pxe_parse(struct discover_context *dc)
                if (!pxe_conf_files)
                        goto out_conf;
 
+               rc = -1;
+
                for (filename = pxe_conf_files; *filename; filename++) {
                        url = pb_url_join(dc, conf_url, *filename);
                        if (!url)