Initialise struct pkg_foo *foo properly so that the pkg_foo iterator works correctly.
modified libpkg/pkg_printf.c
@@ -318,7 +318,7 @@ format_annotations(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -372,7 +372,7 @@ format_shlibs_required(struct sbuf *sbuf, const void *data, struct percent_esc *
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -418,7 +418,7 @@ format_categories(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -462,7 +462,7 @@ format_directories(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -565,7 +565,7 @@ format_files(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -664,7 +664,7 @@ format_groups(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -730,7 +730,7 @@ format_licenses(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -789,7 +789,7 @@ format_options(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -844,7 +844,7 @@ format_users(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -914,7 +914,7 @@ format_shlibs_provided(struct sbuf *sbuf, const void *data, struct percent_esc *
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -959,7 +959,7 @@ format_dependencies(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1122,7 +1122,7 @@ format_requirements(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1264,6 +1264,7 @@ new_percent_esc(struct percent_esc *p)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1580,13 +1581,15 @@ struct percent_esc *
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -1598,7 +1601,10 @@ iterate_item(struct sbuf *sbuf, const struct pkg *pkg, const char *format,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1608,6 +1614,7 @@ iterate_item(struct sbuf *sbuf, const struct pkg *pkg, const char *format,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1732,6 +1739,7 @@ format_trailer(const char *f, struct percent_esc *p)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1748,6 +1756,7 @@ format_trailer(const char *f, struct percent_esc *p)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -2337,13 +2346,20 @@ pkg_sbuf_vprintf(struct sbuf * restrict sbuf, const char * restrict format,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg_printf.h
@@ -137,9 +137,13 @@ typedef enum _fmt_code_t {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|