summaryrefslogtreecommitdiff
path: root/src/ne_redirect.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2005-07-06 11:08:21 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2005-07-06 11:08:21 +0000
commitcfad4a46edd42469b271e1d6eeb2ef0f199159fa (patch)
treedbe4842f2ebe11141afc85ee202e01e6f090453d /src/ne_redirect.c
parent117c202fc080c44469223c2eead8f1ecd7666d57 (diff)
downloadneon-cfad4a46edd42469b271e1d6eeb2ef0f199159fa.tar.gz
* src/ne_redirect.c (post_send): Code cleanup.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@657 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_redirect.c')
-rw-r--r--src/ne_redirect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ne_redirect.c b/src/ne_redirect.c
index 81781ff..5a72a83 100644
--- a/src/ne_redirect.c
+++ b/src/ne_redirect.c
@@ -74,9 +74,9 @@ static int post_send(ne_request *req, void *private, const ne_status *status)
ne_buffer_zappend(path, red->requri);
pnt = strrchr(path->data, '/');
- if (pnt && *(pnt+1) != '\0') {
+ if (pnt && pnt[1] != '\0') {
/* Chop off last path segment. */
- *(pnt+1) = '\0';
+ pnt[1] = '\0';
ne_buffer_altered(path);
}
ne_buffer_zappend(path, location);