fix warnings and sigsegv

This commit is contained in:
Nishi 2026-05-15 00:25:24 +09:00
commit 276a9eeec5
2 changed files with 2 additions and 4 deletions

View file

@ -6,8 +6,8 @@
static int wcreate(MwWidget handle) {
MwLabel lab = malloc(sizeof(*lab));
memset(lab, 0, sizeof(*lab));
lab->segment = NULL;
handle->internal = lab;
MwSetDefault(handle);
@ -321,7 +321,6 @@ static void draw_normal(MwWidget handle) {
int align;
const char* str = MwGetText(handle, MwNtext);
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
int l_one = MwGetInteger(handle, MwNlength) - (MwGetInteger(handle, MwNlength) % 2);
if(str == NULL) str = "";