From f5aafced7a993e26ae5a48fd23238e1f7f2ce419 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 1 Jan 2023 13:36:32 +0100 Subject: console-client: Fix erroneous allocation check --- console-client/bdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console-client/bdf.c') diff --git a/console-client/bdf.c b/console-client/bdf.c index b61ef35c..8b68368b 100644 --- a/console-client/bdf.c +++ b/console-client/bdf.c @@ -632,7 +632,7 @@ bdf_new (bdf_font_t *font, int version_maj, int version_min, bdf->version_maj = version_maj; bdf->version_min = version_min; bdf->name = strdup (name); - if (!name) + if (!bdf->name) { free (bdf); errno = ENOMEM; -- cgit v1.2.3