From 6d05f3e01a26fa416c9d0150163db20abac4b4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 21 Mar 2018 22:11:05 +0100 Subject: New upstream version 0.8.5 --- tool/uriparse.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tool/uriparse.c') diff --git a/tool/uriparse.c b/tool/uriparse.c index c844ec6..e9c1218 100644 --- a/tool/uriparse.c +++ b/tool/uriparse.c @@ -36,6 +36,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include @@ -110,7 +111,15 @@ int main(int argc, char *argv[]) { if (uri.fragment.first) { printf("fragment: %.*s\n", RANGE(uri.fragment)); } - printf("absolutePath: %s\n", (uri.absolutePath == URI_TRUE) ? "true" : "false"); + { + const char * const absolutePathLabel = "absolutePath: "; + printf("%s%s\n", absolutePathLabel, + (uri.absolutePath == URI_TRUE) ? "true" : "false"); + if (uri.hostText.first != NULL) { + printf("%*s%s\n", (int)strlen(absolutePathLabel), "", + "(always false for URIs with host)"); + } + } } printf("\n"); -- cgit v1.2.3