diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-12 20:07:47 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-12 20:07:47 +0800 |
| commit | ee87c46227c838961250bb8d50edca57ac154462 (patch) | |
| tree | 99a522cb793b29e2e9e2253b2a7fae843ff61a2e /main.c | |
| parent | b94e7d2e3e33490d5b94da3c5406d4fe2e143edd (diff) | |
Further simplify icclient_results function
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -26,6 +26,7 @@ static void print_catalog(struct icclient_catalog *catalog) product->prod_group ); } + icclient_catalog_free(catalog); } static size_t print_user(void *contents, size_t size, size_t nmemb, void *userData) @@ -51,9 +52,7 @@ int main(int argc, char *argv[]) icclient_init(url, NULL); free(url); - struct icclient_catalog *catalog; - icclient_allproducts(print_catalog, &catalog, NULL); - icclient_catalog_free(catalog); + icclient_allproducts(print_catalog, NULL); char *name_line = NULL; printf("\nName: "); |