diff options
author | Ömer Fadıl USTA <omerusta@gmail.com> | 2013-07-12 13:28:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-15 14:20:00 (GMT) |
commit | 3b849a7ae9051372cbf35c869a367d911e12491e (patch) | |
tree | 1be79c271dfafc8eb8eb281c1ed2deed8ac5660d /Source/CursesDialog | |
parent | b9412889e9c5028e32ef3b978d8cdd1175f14b0f (diff) | |
download | CMake-3b849a7ae9051372cbf35c869a367d911e12491e.zip CMake-3b849a7ae9051372cbf35c869a367d911e12491e.tar.gz CMake-3b849a7ae9051372cbf35c869a367d911e12491e.tar.bz2 |
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>
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/form/fty_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/form/fty_ipv4.c b/Source/CursesDialog/form/fty_ipv4.c index 4ac8a50..c855af6 100644 --- a/Source/CursesDialog/form/fty_ipv4.c +++ b/Source/CursesDialog/form/fty_ipv4.c @@ -30,7 +30,7 @@ static bool Check_IPV4_Field(FIELD * field, const void * argp) { char *bp = field_buffer(field,0); 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. */ |