[asterisk-commits] twilson: trunk r112035 - /trunk/main/http.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 31 16:01:59 CDT 2008
Author: twilson
Date: Mon Mar 31 16:01:59 2008
New Revision: 112035
URL: http://svn.digium.com/view/asterisk?view=rev&rev=112035
Log:
Yeah, simplify that logic a bit...
Modified:
trunk/main/http.c
Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?view=diff&rev=112035&r1=112034&r2=112035
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Mon Mar 31 16:01:59 2008
@@ -684,7 +684,8 @@
}
/* We want requests to start with the (optional) prefix and '/' */
- if (((l = strlen(prefix)) || !*prefix) && !strncasecmp(uri, prefix, l) && uri[l] == '/') {
+ l = strlen(prefix);
+ if (!strncasecmp(uri, prefix, l) && uri[l] == '/') {
uri += l + 1;
/* scan registered uris to see if we match one. */
AST_RWLIST_RDLOCK(&uris);
More information about the asterisk-commits
mailing list