X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=libubus-obj.c;h=a1062e0a5a8b247cb849b729867dd585c3d22761;hb=47a9ab0c645d4d49def8080ae68c7c477e733530;hp=212c13cbc9723a52c7bf438c5b67038412374bd1;hpb=37cc5d2f25c162c1e125922e91bbc741e2e4a6d1;p=project%2Fubus.git diff --git a/libubus-obj.c b/libubus-obj.c index 212c13c..a1062e0 100644 --- a/libubus-obj.c +++ b/libubus-obj.c @@ -46,7 +46,9 @@ static void ubus_process_invoke(struct ubus_context *ctx, struct ubus_msghdr *hdr, struct ubus_object *obj, struct blob_attr **attrbuf) { - struct ubus_request_data req = {}; + struct ubus_request_data req = { + .fd = -1, + }; int method; int ret; bool no_reply = false;