fix segfault
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@49 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
1e9aeb50e6
commit
6fd1065f28
2 changed files with 2 additions and 1 deletions
|
|
@ -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 =
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue