From 8c10bf43797c2d637b7292575271ab201296b020 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Feb 2017 04:17:53 +0300 Subject: Fix possible use after free in curl. --- src/settings.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index 57348a394..4aa8f655e 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -21,6 +21,7 @@ #include "settings.h" #include "configuration.h" +#include "main.h" #include "debug.h" @@ -29,4 +30,6 @@ Settings settings; void Settings::init() { uselonglivesprites = config.getBoolValue("uselonglivesprites"); + userAgent = strprintf(PACKAGE_EXTENDED_VERSION, + branding.getStringValue("appName").c_str()); } -- cgit v1.2.3-70-g09d2