Fixed: Null pointer error

--HG--
branch : develop
hg/compatibility-develop
Nimetu 7 years ago
parent 9dce8df546
commit 64c90c4fdc

@ -689,7 +689,7 @@ namespace NLGUI
char *ch; char *ch;
std::string contentType; std::string contentType;
res = curl_easy_getinfo(_CurlWWW->Request, CURLINFO_CONTENT_TYPE, &ch); res = curl_easy_getinfo(_CurlWWW->Request, CURLINFO_CONTENT_TYPE, &ch);
if (res == CURLE_OK) if (res == CURLE_OK && ch != NULL)
{ {
contentType = ch; contentType = ch;
} }

Loading…
Cancel
Save