From 39a1950098b331c5a2c203431ffc26f276274863 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 29 Sep 2020 16:40:53 +0900 Subject: [PATCH] wgetjson: Fix a super confusing printf message --- examples/wgetjson/wgetjson_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/wgetjson/wgetjson_main.c b/examples/wgetjson/wgetjson_main.c index 99c2ccccb..2a4bd334f 100644 --- a/examples/wgetjson/wgetjson_main.c +++ b/examples/wgetjson/wgetjson_main.c @@ -381,11 +381,10 @@ int main(int argc, FAR char *argv[]) buffer = malloc(buffer_len); wgetjson_json_release(); - printf("URL: %s\n", url); - if (is_post) { url = CONFIG_EXAMPLES_WGETPOST_URL; + printf("URL: %s\n", url); if (is_post_multi) { post_buff_len = web_posts_strlen(post_multi_names, @@ -411,6 +410,7 @@ int main(int argc, FAR char *argv[]) } else { + printf("URL: %s\n", url); ret = wget(url, buffer, buffer_len, wget_cb , NULL); }