summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/books.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/books.c')
-rw-r--r--misc/examples/books.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/examples/books.c b/misc/examples/books.c
index 098771ae..e43c0bc3 100644
--- a/misc/examples/books.c
+++ b/misc/examples/books.c
@@ -8,8 +8,10 @@
// would be `HashMap<String, String>` in this example).
int main()
{
- c_auto (cmap_str, book_reviews)
- {
+ cmap_str book_reviews = {0};
+ c_defer(
+ cmap_str_drop(&book_reviews)
+ ){
// Review some books.
cmap_str_emplace(&book_reviews,
"Adventures of Huckleberry Finn",