From 1cec0e03461e05d3455aba1d1a4a3a645dd67ce5 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 16 Jan 2019 15:01:49 +0100 Subject: [PATCH] Fixed NULL dereference. --- client/Wayland/wlf_cliprdr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/Wayland/wlf_cliprdr.c b/client/Wayland/wlf_cliprdr.c index acce16e..9187bdd 100644 --- a/client/Wayland/wlf_cliprdr.c +++ b/client/Wayland/wlf_cliprdr.c @@ -803,10 +803,7 @@ wfClipboard* wlf_clipboard_new(wlfContext* wfc) wfClipboard* clipboard; if (!(clipboard = (wfClipboard*) calloc(1, sizeof(wfClipboard)))) - { - WLog_Print(clipboard->log, WLOG_ERROR, "failed to allocate wfClipboard data"); return NULL; - } clipboard->wfc = wfc; channels = wfc->context.channels; -- 2.7.4