diff --git a/gnss_info/src/common.cpp b/gnss_info/src/common.cpp index 26d58f2..332042a 100644 --- a/gnss_info/src/common.cpp +++ b/gnss_info/src/common.cpp @@ -59,7 +59,8 @@ cras::expected download(const std::string& url, std::stringstream readBuffer; const auto curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1u); - curlOptions(curl); // Set extra config options. + if (curlOptions) + curlOptions(curl); // Set extra config options. curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curlCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);