mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
Fix accidental variable shadowing.
We were looking up the ivar, but then not using the result, so got null pointer dereferences later. This should have been caught by normal compiler warnings, but apparently Gorm turns them off.
This commit is contained in:
parent
0d3ab06c92
commit
04554d25c8
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
|||
static Ivar iv;
|
||||
if (!iv)
|
||||
{
|
||||
Ivar iv = class_getInstanceVariable([NSDocument class], "_window");
|
||||
iv = class_getInstanceVariable([NSDocument class], "_window");
|
||||
NSAssert(iv, @"Unable to find _window ivar in NSDocument class");
|
||||
}
|
||||
return object_getIvar(self, iv);
|
||||
|
|
Loading…
Reference in a new issue