summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vconsole/vconsole-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c
index 08ae4aad27..1118118450 100644
--- a/src/vconsole/vconsole-setup.c
+++ b/src/vconsole/vconsole-setup.c
@@ -199,8 +199,8 @@ static void font_copy_to_all_vcs(int fd) {
int i, r;
unipairs = new(struct unipair, USHRT_MAX);
- if (unipairs == NULL) {
- log_error("Not enough memory to copy fonts");
+ if (!unipairs) {
+ log_oom();
return;
}