From 85acc28a5a8a767471e80629b73c4dd7302dd2c3 Mon Sep 17 00:00:00 2001 From: tigro Date: Thu, 17 Oct 2024 17:50:23 +0300 Subject: [PATCH] Add missing patch --- SOURCES/kbd-2.4.0-initialize-variable.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 SOURCES/kbd-2.4.0-initialize-variable.patch diff --git a/SOURCES/kbd-2.4.0-initialize-variable.patch b/SOURCES/kbd-2.4.0-initialize-variable.patch new file mode 100644 index 0000000..6aa001d --- /dev/null +++ b/SOURCES/kbd-2.4.0-initialize-variable.patch @@ -0,0 +1,12 @@ +diff -up kbd-2.4.0/src/libkfont/setfont.c.orig kbd-2.4.0/src/libkfont/setfont.c +--- kbd-2.4.0/src/libkfont/setfont.c.orig 2020-06-01 17:53:08.000000000 +0200 ++++ kbd-2.4.0/src/libkfont/setfont.c 2024-04-16 11:04:00.455262477 +0200 +@@ -270,7 +270,7 @@ kfont_load_fonts(struct kfont_context *c + unsigned char *inbuf, *fontbuf, *bigfontbuf; + unsigned int inputlth, fontbuflth, fontsize, height, width, bytewidth; + unsigned int bigfontbuflth, bigfontsize, bigheight, bigwidth; +- unsigned char *ptr; ++ unsigned char *ptr = NULL; + struct unicode_list *uclistheads; + struct kbdfile *fp = NULL; + int i;