diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 04:17:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 14:23:10 +0300 |
commit | 8c10bf43797c2d637b7292575271ab201296b020 (patch) | |
tree | 53e0dd7c382aec1b213c6ee973be10d8dfb15604 /src/settings.cpp | |
parent | 9e4376f937257ecb72ef29492516e3de1e882dfd (diff) | |
download | manaverse-8c10bf43797c2d637b7292575271ab201296b020.tar.gz manaverse-8c10bf43797c2d637b7292575271ab201296b020.tar.bz2 manaverse-8c10bf43797c2d637b7292575271ab201296b020.tar.xz manaverse-8c10bf43797c2d637b7292575271ab201296b020.zip |
Fix possible use after free in curl.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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()); } |