Skip to content

Commit 7c1b3c2

Browse files
committed
Debug note
1 parent 52004a1 commit 7c1b3c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/framework/chef.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ chef_set_note (Target_t *target, const char *note_zh, const char *note_en)
9191
if (!target)
9292
return;
9393

94-
char *msg = CHINESE ? xy_strdup(note_zh) : xy_strdup(note_en);
95-
target->note = msg;
94+
const char *msg = CHINESE ? note_zh : note_en;
95+
96+
if (msg)
97+
target->note = xy_strdup(msg);
9698
}
9799

98100

0 commit comments

Comments
 (0)