From f1d2a11aade12a7bd15e7dc21c754d2de7efc9d0 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 19 Mar 2008 04:09:55 +0000 Subject: Minor change to use Asterisk macros git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109841 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/http.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main/http.c b/main/http.c index c3df5af42..c0212d242 100644 --- a/main/http.c +++ b/main/http.c @@ -136,13 +136,16 @@ static AST_RWLIST_HEAD_STATIC(uri_redirects, http_uri_redirect); static const char *ftype2mtype(const char *ftype, char *wkspace, int wkspacelen) { int x; + if (ftype) { - for (x=0;x