mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix a few uninitialised variables
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aa6df021f9
commit
3ac2bab295
3 changed files with 3 additions and 4 deletions
|
@ -821,7 +821,7 @@ typedef enum {
|
|||
forName: (NSString*)name
|
||||
{
|
||||
NSRunLoop *loop = [NSRunLoop currentRunLoop];
|
||||
GSPortCom *com;
|
||||
GSPortCom *com = nil;
|
||||
unsigned len;
|
||||
NSDate *limit;
|
||||
|
||||
|
|
|
@ -280,14 +280,13 @@ setupPathNames()
|
|||
NS_DURING
|
||||
{
|
||||
BOOL warned = NO;
|
||||
NSDictionary *env;
|
||||
NSDictionary *env = [[NSProcessInfo processInfo] environment];
|
||||
|
||||
[gnustep_global_lock lock];
|
||||
|
||||
/* Double-Locking Pattern */
|
||||
if (gnustep_system_root == nil)
|
||||
{
|
||||
env = [[NSProcessInfo processInfo] environment];
|
||||
/* Any of the following might be nil */
|
||||
gnustep_system_root = [env objectForKey: @"GNUSTEP_SYSTEM_ROOT"];
|
||||
TEST_RETAIN (gnustep_system_root);
|
||||
|
|
|
@ -47,7 +47,7 @@ callframe_from_info (NSArgumentInfo *info, int numargs, void **retval)
|
|||
{
|
||||
unsigned size = sizeof(callframe_t);
|
||||
unsigned align = __alignof(double);
|
||||
unsigned offset;
|
||||
unsigned offset = 0;
|
||||
void *buf;
|
||||
int i;
|
||||
callframe_t *cframe;
|
||||
|
|
Loading…
Reference in a new issue