From 6fd1065f28ba1da2947762b79bb31125f20c8155 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 29 Sep 2025 05:02:24 +0000 Subject: [PATCH] fix segfault git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@49 b9cfdab3-6d41-4d17-bbe4-086880011989 --- GNUmakefile | 2 +- src/core.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index c3b914f..0f8e023 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,7 +3,7 @@ TARGET = $(shell uname -s) CC = gcc -CFLAGS = -Wall -Wextra -fPIC -Iinclude -D_MILSKO -g +CFLAGS = -Wall -Wextra -fPIC -Iinclude -D_MILSKO LDFLAGS = LIBS = diff --git a/src/core.c b/src/core.c index f08b1b6..f960dfc 100644 --- a/src/core.c +++ b/src/core.c @@ -41,6 +41,7 @@ MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, sh_new_strdup(h->text); sh_new_strdup(h->integer); + sh_new_strdup(h->handler); shdefault(h->integer, -1); shdefault(h->text, NULL);