diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2018-02-07 10:53:23 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2018-02-07 11:02:27 +0100 |
commit | 4305c663f82207daea99076a154a6ffce9747fc5 (patch) | |
tree | 9fcd83a2d85a5c0e592e4fd498e4fa861deadc16 | |
parent | aedc7059128e413d763e22ad1afa8445ccc768f5 (diff) | |
download | uriparser-4305c663f82207daea99076a154a6ffce9747fc5.tar.gz |
tool/uriparse.c: Extract constant absolutePathLabel
.. to avoid duplication in upcoming exention.
-rw-r--r-- | tool/uriparse.c | 6 |
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"); |