ccmake: Add missing initializers reported by cppcheck

The return statement uses d1, d2, d3, and d4 variables but the code
which initialize them inside a if statement and not always this if
statement is corrent.  On the other hand these variables are using for
return statement and needed to be initialized.  A trivial fix to pervent
some compilers will give build error.

Reviewed-by: Igor Murzov <e-mail@date.by>
This commit is contained in:
Ömer Fadıl USTA 2013-07-12 16:28:51 +03:00 committed by Brad King
parent b9412889e9
commit 3b849a7ae9
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ static bool Check_IPV4_Field(FIELD * field, const void * argp)
{ {
char *bp = field_buffer(field,0); char *bp = field_buffer(field,0);
int num = 0, len; int num = 0, len;
unsigned int d1, d2, d3, d4; unsigned int d1=256, d2=256, d3=256, d4=256;
argp=0; /* Silence unused parameter warning. */ argp=0; /* Silence unused parameter warning. */