talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit e973bde33ac3b0b00f57c5c6ac3f1e4416ce8479
parent 364fe8750b11ed26ddf836cf5c2cf65174b1783c
Author: Michael Rasmussen <mir@datanom.net>
Date:   Thu,  8 Nov 2018 00:50:37 +0100

I am tired ;-)

Signed-off-by: Michael Rasmussen <mir@datanom.net>

Diffstat:
Msrc/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 @@ -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;