summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-06-26 10:48:20 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-06-26 10:48:20 +0200
commit8f5b65ec11c21035eca2cf87d40cc2f1578e5627 (patch)
treee88104ac5ce315386c55a9de2e98dea9c5bb7c98 /src
parent7ea02318a1c15ad37e118784fd22695b9671dce9 (diff)
ua: move whitespace to next line, a bit more readable
Diffstat (limited to 'src')
-rw-r--r--src/ua.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ua.c b/src/ua.c
index ccbb9f3..80aedd6 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -608,8 +608,9 @@ static int uri_complete(struct ua *ua, struct mbuf *buf, const char *uri)
int err = 0;
/* Skip initial whitespace */
- while (isspace(*uri)) uri++;
-
+ while (isspace(*uri))
+ ++uri;
+
len = str_len(uri);
/* Append sip: scheme if missing */