summaryrefslogtreecommitdiff
path: root/src/vconsole/vconsole-setup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-17 10:27:26 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-17 10:29:28 +0200
commite2c9192a4529a6d0a9d8ba824c3822eeb7d7c002 (patch)
tree1a761aee346aea26da811d172fa0aaa7bbd52439 /src/vconsole/vconsole-setup.c
parenta45bf10d2939f0261f7dbe7ae5092cc1673ebf66 (diff)
vconsole: add log_oom() where appropriate
Diffstat (limited to 'src/vconsole/vconsole-setup.c')
-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;
}