From: Neil Brown Date: Thu, 22 Feb 2007 03:59:16 +0000 (+1100) Subject: Fix a warning about an uninitialised variable. X-Git-Tag: mdadm-2.6.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae491d1e2c1c61be8bb341bd024e467e419a464c;p=thirdparty%2Fmdadm.git Fix a warning about an uninitialised variable. The case that doesn't initialise it is impossible, so just return with an error.. --- diff --git a/ChangeLog b/ChangeLog index 2f6a6e55..3e10eb40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Changes Prior to this release - --monitor was producing some meaningless warnings due to a bug. + - Fix some compiler warnings. Changes Prior to 2.6 release - Fixed UUID printing in "--detail --brief" for version1 metadata. diff --git a/super1.c b/super1.c index a480f21c..42efc759 100644 --- a/super1.c +++ b/super1.c @@ -1203,6 +1203,8 @@ add_internal_bitmap1(struct supertype *st, void *sbv, } } break; + default: + return 0; } if (chunk == UnSet && room > 128*2)