talons

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

commit 2d53f85576e2db0783a121d7ceb83b5842226504
parent 251d6bcffede3cac0453c377e84c9245cb0982b6
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;