X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-xreq.c;h=fbed6ed1d8ca16949e4a7d95342855fa2c7e401c;hb=cc83f1893aa03e639dfa57ff58ce9f9875461b66;hp=e8a4222615c8628763d18cffba052dc3314810d3;hpb=f7b298ae1c4f46bba07ddf9f9813c8fa85187d12;p=src%2Fapp-framework-binder.git diff --git a/src/afb-xreq.c b/src/afb-xreq.c index e8a42226..fbed6ed1 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -55,7 +55,9 @@ static void vinfo(void *first, void *second, const char *fmt, va_list args, void static struct json_object *xreq_json_cb(void *closure) { struct afb_xreq *xreq = closure; - return xreq->json ? : (xreq->json = xreq->queryitf->json(xreq)); + if (!xreq->json && xreq->queryitf->json) + xreq->json = xreq->queryitf->json(xreq); + return xreq->json; } static struct afb_arg xreq_get_cb(void *closure, const char *name)