Fix unittest compiler warning.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent b5e17ec1d8
commit 91957d70a8

@ -628,7 +628,7 @@ end:
static int DetectIPProtoTestSetup02(void) static int DetectIPProtoTestSetup02(void)
{ {
int result = 0; int result = 0;
Signature *sig; Signature *sig = NULL;
char *value_str = "tcp"; char *value_str = "tcp";
struct protoent *pent = getprotobyname(value_str); struct protoent *pent = getprotobyname(value_str);
if (pent == NULL) { if (pent == NULL) {
@ -656,7 +656,8 @@ static int DetectIPProtoTestSetup02(void)
result = 1; result = 1;
end: end:
SigFree(sig); if (sig != NULL)
SigFree(sig);
return result; return result;
} }

Loading…
Cancel
Save