From e973bde33ac3b0b00f57c5c6ac3f1e4416ce8479 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Thu, 8 Nov 2018 00:50:37 +0100 Subject: [PATCH] I am tired ;-) Signed-off-by: Michael Rasmussen --- src/plugins/litehtml_viewer/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp index 2a8709a1c..5f24e2a39 100644 --- a/src/plugins/litehtml_viewer/http.cpp +++ b/src/plugins/litehtml_viewer/http.cpp @@ -27,7 +27,7 @@ size_t http::curl_write_data(char* ptr, size_t size, size_t nmemb, void* data_pt size_t realsize = size * nmemb; char *input = (char *) realloc(data->memory, data->size + realsize + 1); - if(ptr == NULL) { + if(input == NULL) { /* out of memory! */ g_log(NULL, G_LOG_LEVEL_ERROR, "not enough memory (realloc returned NULL)"); return 0; -- 2.25.1