various code simplifications to reduce nesting depth,
authorLuigi Rizzo <rizzo@icir.org>
Wed, 18 Oct 2006 04:05:56 +0000 (04:05 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 18 Oct 2006 04:05:56 +0000 (04:05 +0000)
commitd1058df18f15dffc0c1dfdb70ffd531e586c5d28
tree3dcf73f8e1c2a906b4ccdab5a585707a14d3394c
parentbb8926d50c9862f196addfca8bc34af9ab4c60a1
various code simplifications to reduce nesting depth,
minor optimizations to avoid extra calls of strlen(),
and some variable localization.

One feature worth backporting is the move of ast_variables_destroy()
to a different place in handle_uri() to avoid leaking memory
in case a uri is not found.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/http.c