Community
Participate
Working Groups
There is no default value when calling the function POST_OPTION_HOOK if there is no "-s " option. The modification is from the commit f848512d7d22c5ba1f449f8df764eb0e249bb898. it has default value DEFAULT_SERVER_URL before this commit . I suggest to add the code if (url_cnt == 0) { if (url_cnt >= url_max) url_arr = (const char **)loc_realloc((void *)url_arr, sizeof(const char *) * (url_max += 16)); url_arr[url_cnt++] = DEFAULT_SERVER_URL; } before calling the function POST_OPTION_HOOK.
We defined the POST_OPTION_HOOK which will use the default value.
Fixed. Thanks!