From 47b7f5164a868108d2d9539c41e2b5ddf8c461f0 Mon Sep 17 00:00:00 2001 From: Emil Engler Date: Mon, 14 Aug 2023 11:20:11 +0200 Subject: [PATCH] build: fix linking error on arm64 Darwin Currently, it is not possible to build git master on Darwin, as seen in several issues reported previously. This commit fixes that issues, by initializing two variables to NULL. I have no idea, why this solves the linking error, as to my knowledge, global variables do not need to be initialized. --- src/fe-common/core/themes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index 04f00477..16b1431a 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -34,8 +34,8 @@ #include "default-theme.h" GSList *themes; -THEME_REC *current_theme; -GHashTable *default_formats; +THEME_REC *current_theme = NULL; +GHashTable *default_formats = NULL; static int init_finished; static char *init_errors;