enhance to generate encode routine to be more robust to encode NULL
This commit is contained in:
parent
3425f75440
commit
07e2126e25
4 changed files with 17 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue