efi_loader: Fix warning in raw/cols query

The code to determine rows / cols on the screen could potentially run
into a case where it doesn't know how big the screen is. In that case,
assume 80x25.

Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Alexander Graf 2018-06-03 15:51:17 +02:00
parent d29e7824d7
commit 80483b2ab6

View File

@ -223,7 +223,7 @@ static int query_console_serial(int *rows, int *cols)
static void query_console_size(void)
{
const char *stdout_name = env_get("stdout");
int rows, cols;
int rows = 25, cols = 80;
if (stdout_name && !strcmp(stdout_name, "vidconsole") &&
IS_ENABLED(CONFIG_DM_VIDEO)) {