enhance to generate encode routine to be more robust to encode NULL

This commit is contained in:
Rongsong Shen 2025-04-27 17:23:50 +08:00
parent 3425f75440
commit 07e2126e25
4 changed files with 17 additions and 1 deletions

View file

@ -44,7 +44,8 @@ int encode() {
book.authors = authors;
book.n_chapters = 3;
book.chapters_ = &chapters[0];
book.publish = &publish;
book.publish = &publish ;
book.nulldata = NULL;
book.n_magic1 = 2;
book.magic_1 = &magic1[0];
book.acquire_method = Book_acquire_buy;