vconsole: add log_oom() where appropriate

This commit is contained in:
Lennart Poettering
2016-05-17 10:29:28 +02:00
parent a45bf10d29
commit e2c9192a45
+2 -2
View File
@@ -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;
}