Initialize variable "image" before using it.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26579 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-05-27 20:31:18 +00:00
parent 9bc2ed46c5
commit a42739f8d5
2 changed files with 7 additions and 1 deletions

View file

@ -654,7 +654,8 @@ static NSNull *null = nil;
unsigned count;
imageTypes = [NSImage imageFileTypes];
for (count = 0; image == nil && count < [imageTypes count]; count++)
for (count = 0, image = nil; image == nil && count < [imageTypes count];
count++)
{
NSString *ext = [imageTypes objectAtIndex: count];