File kbd-ignore-working-directory-2.patch of Package kbd.38483

From 015ccea30b4dbfe7f4743c00708d11d05349954d Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <gladkov.alexey@gmail.com>
Date: Sat, 9 Sep 2023 11:38:02 +0200
Subject: [PATCH 2/3] setfont: Don't look for fonts in the current directory

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
---
 src/libkfont/context.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/libkfont/context.c b/src/libkfont/context.c
index 93efbe7..c3d8920 100644
--- a/src/libkfont/context.c
+++ b/src/libkfont/context.c
@@ -12,7 +12,6 @@
 
 /* search for the map file in these directories (with trailing /) */
 static const char *const mapdirpath[]  = {
-	"",
 	DATADIR "/" TRANSDIR "/",
 	NULL
 };
@@ -27,7 +26,6 @@ static const char *const mapsuffixes[] = {
 
 /* search for the font in these directories (with trailing /) */
 static const char *const fontdirpath[]  = {
-	"",
 	DATADIR "/" FONTDIR "/",
 	NULL
 };
@@ -41,7 +39,6 @@ static char const *const fontsuffixes[] = {
 };
 
 static const char *const unidirpath[]  = {
-	"",
 	DATADIR "/" UNIMAPDIR "/",
 	NULL
 };
@@ -54,7 +51,6 @@ static const char *const unisuffixes[] = {
 
 /* hide partial fonts a bit - loading a single one is a bad idea */
 const char *const partfontdirpath[]  = {
-	"",
 	DATADIR "/" FONTDIR "/" PARTIALDIR "/",
 	NULL
 };
-- 
2.48.1

openSUSE Build Service is sponsored by