mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 23:50:47 +00:00
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:
parent
9bc2ed46c5
commit
a42739f8d5
2 changed files with 7 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue