mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +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
0b5671523f
commit
7d6490fcb9
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-05-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSTheme.m (-tilesNamed:cache:): Make sure local variable
|
||||
is initialized before using it.
|
||||
|
||||
2008-05-25 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* Documentation/GNUmakefile.postamble (after-install): Use
|
||||
|
|
|
@ -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…
Reference in a new issue