aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-15 17:51:32 +0200
committerjcid <devnull@localhost>2008-09-15 17:51:32 +0200
commit29a9d7ce54badbb0f5e5b2b747b78a88bc5715c2 (patch)
tree6338f459336bb7e2082e519d7c4e8df7223e41a6 /src
parent8ee7a3ae6715bcb327b1a35055887cd804910096 (diff)
- Macro fix for readability.
Diffstat (limited to 'src')
-rw-r--r--src/url.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.h b/src/url.h
index 76886885..32b173e6 100644
--- a/src/url.h
+++ b/src/url.h
@@ -60,7 +60,7 @@
/* this returns a Dstr* */
#define URL_DATA_(u) u->data
/* these return an integer */
-#define URL_PORT_(u) (URL_HOST(u) ? u->port : u->port)
+#define URL_PORT_(u) (URL_HOST(u), u->port)
#define URL_FLAGS_(u) u->flags
#define URL_ILLEGAL_CHARS_(u) url->illegal_chars
#define URL_ILLEGAL_CHARS_SPC_(u) url->illegal_chars_spc