From 7c20daf69c4411979b7f8902f3601d1cdc56cc07 Mon Sep 17 00:00:00 2001 From: Felipe Sateler Date: Wed, 20 Feb 2019 21:24:33 -0300 Subject: New upstream version 241 --- src/import/curl-util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/import/curl-util.c') 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; } -- cgit v1.2.1