summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2018-02-07 10:53:23 +0100
committerSebastian Pipping <sebastian@pipping.org>2018-02-07 11:02:27 +0100
commit4305c663f82207daea99076a154a6ffce9747fc5 (patch)
tree9fcd83a2d85a5c0e592e4fd498e4fa861deadc16
parentaedc7059128e413d763e22ad1afa8445ccc768f5 (diff)
downloaduriparser-4305c663f82207daea99076a154a6ffce9747fc5.tar.gz
tool/uriparse.c: Extract constant absolutePathLabel
.. to avoid duplication in upcoming exention.
-rw-r--r--tool/uriparse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/uriparse.c b/tool/uriparse.c
index b8772e3..5ac105d 100644
--- a/tool/uriparse.c
+++ b/tool/uriparse.c
@@ -111,7 +111,11 @@ 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");
+ }
}
printf("\n");