From: Michael Tremer Date: Wed, 22 Jan 2025 15:01:39 +0000 (+0000) Subject: buildservice: Don't send "(null)" as repository name if none given X-Git-Tag: 0.9.30~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1c506154aab353ab2ff1ade0f696e70e0e90c39;p=pakfire.git buildservice: Don't send "(null)" as repository name if none given Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/buildservice.c b/src/pakfire/buildservice.c index 73fc61a4..3729699c 100644 --- a/src/pakfire/buildservice.c +++ b/src/pakfire/buildservice.c @@ -236,9 +236,11 @@ int pakfire_buildservice_build(struct pakfire_buildservice* service, const char* goto ERROR; // Add the repo parameter - r = pakfire_xfer_add_param(xfer, "repo", "%s", repo); - if (r) - goto ERROR; + if (repo) { + r = pakfire_xfer_add_param(xfer, "repo", "%s", repo); + if (r) + goto ERROR; + } // Add any arches if (arches) {