Fix compilation warning

A goto could lead to the use de_ctx without declaring it.
pull/446/merge
Eric Leblond 12 years ago committed by Victor Julien
parent 915aa9fc26
commit 281d2f27f8

@ -1483,6 +1483,7 @@ int DetectCsumICMPV6ValidArgsTestParse03(void) {
int DetectCsumICMPV6Test01(void) int DetectCsumICMPV6Test01(void)
{ {
int result = 0; int result = 0;
DetectEngineCtx *de_ctx = NULL;
Packet *p = PacketGetFromAlloc(); Packet *p = PacketGetFromAlloc();
if (p == NULL) { if (p == NULL) {
@ -1520,7 +1521,7 @@ int DetectCsumICMPV6Test01(void)
StreamTcpInitConfig(TRUE); StreamTcpInitConfig(TRUE);
FlowInitConfig(FLOW_QUIET); FlowInitConfig(FLOW_QUIET);
DetectEngineCtx *de_ctx = DetectEngineCtxInit(); de_ctx = DetectEngineCtxInit();
if (de_ctx == NULL) { if (de_ctx == NULL) {
printf("DetectEngineCtxInit failure\n"); printf("DetectEngineCtxInit failure\n");
goto end; goto end;

Loading…
Cancel
Save