remove variable declaration in the middle of a block
authorLuigi Rizzo <rizzo@icir.org>
Fri, 19 Jan 2007 17:38:28 +0000 (17:38 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 19 Jan 2007 17:38:28 +0000 (17:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51308 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index cc17af9..ced9769 100644 (file)
@@ -11726,9 +11726,10 @@ static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int r
                    || !strcasecmp(v->name, "crv")
 #endif                 
                        ) {
+                       int iscrv;
                        if (skipchannels)
                                continue;
-                       int iscrv = !strcasecmp(v->name, "crv");
+                       iscrv = !strcasecmp(v->name, "crv");
                        if (build_channels(*confp, iscrv, v->value, reload, v->lineno, &found_pseudo))
                                        return -1;
                } else if (!strcasecmp(v->name, "zapchan")) {