diff options
Diffstat (limited to 'src/import/curl-util.c')
-rw-r--r-- | src/import/curl-util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c index 05b17c3c78..7db03b2919 100644 --- a/src/import/curl-util.c +++ b/src/import/curl-util.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #include "alloc-util.h" +#include "build.h" #include "curl-util.h" #include "fd-util.h" #include "locale-util.h" @@ -283,14 +284,14 @@ int curl_glue_make(CURL **ret, const char *url, void *userdata) { if (curl_easy_setopt(c, CURLOPT_PRIVATE, userdata) != CURLE_OK) return -EIO; - useragent = strjoina(program_invocation_short_name, "/" PACKAGE_VERSION); + useragent = strjoina(program_invocation_short_name, "/" GIT_VERSION); if (curl_easy_setopt(c, CURLOPT_USERAGENT, useragent) != CURLE_OK) return -EIO; if (curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L) != CURLE_OK) return -EIO; - *ret = c; + *ret = TAKE_PTR(c); return 0; } |