summaryrefslogtreecommitdiff
path: root/console-client
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 13:36:32 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 14:04:51 +0100
commitf5aafced7a993e26ae5a48fd23238e1f7f2ce419 (patch)
tree4127394f52877d66d7a076620f2ae701d7a6dc0e /console-client
parentb66a3f362f9bbf6a23873b245577e87beae183d6 (diff)
console-client: Fix erroneous allocation check
Diffstat (limited to 'console-client')
-rw-r--r--console-client/bdf.c2
1 files changed, 1 insertions, 1 deletions
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;