handle NULL text

This commit is contained in:
Rongsong Shen 2025-04-27 17:52:42 +08:00
parent 07e2126e25
commit 3a7ae150b8
4 changed files with 20 additions and 6 deletions

View file

@ -48,6 +48,7 @@ int encode() {
book.nulldata = NULL;
book.n_magic1 = 2;
book.magic_1 = &magic1[0];
book.description = NULL;
book.acquire_method = Book_acquire_buy;
book.acquire.buy = "bought from Xinhua book store";