mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
86489914cc
commit
da1da5baf3
3 changed files with 3 additions and 4 deletions
|
@ -821,7 +821,7 @@ typedef enum {
|
||||||
forName: (NSString*)name
|
forName: (NSString*)name
|
||||||
{
|
{
|
||||||
NSRunLoop *loop = [NSRunLoop currentRunLoop];
|
NSRunLoop *loop = [NSRunLoop currentRunLoop];
|
||||||
GSPortCom *com;
|
GSPortCom *com = nil;
|
||||||
unsigned len;
|
unsigned len;
|
||||||
NSDate *limit;
|
NSDate *limit;
|
||||||
|
|
||||||
|
|
|
@ -280,14 +280,13 @@ setupPathNames()
|
||||||
NS_DURING
|
NS_DURING
|
||||||
{
|
{
|
||||||
BOOL warned = NO;
|
BOOL warned = NO;
|
||||||
NSDictionary *env;
|
NSDictionary *env = [[NSProcessInfo processInfo] environment];
|
||||||
|
|
||||||
[gnustep_global_lock lock];
|
[gnustep_global_lock lock];
|
||||||
|
|
||||||
/* Double-Locking Pattern */
|
/* Double-Locking Pattern */
|
||||||
if (gnustep_system_root == nil)
|
if (gnustep_system_root == nil)
|
||||||
{
|
{
|
||||||
env = [[NSProcessInfo processInfo] environment];
|
|
||||||
/* Any of the following might be nil */
|
/* Any of the following might be nil */
|
||||||
gnustep_system_root = [env objectForKey: @"GNUSTEP_SYSTEM_ROOT"];
|
gnustep_system_root = [env objectForKey: @"GNUSTEP_SYSTEM_ROOT"];
|
||||||
TEST_RETAIN (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 size = sizeof(callframe_t);
|
||||||
unsigned align = __alignof(double);
|
unsigned align = __alignof(double);
|
||||||
unsigned offset;
|
unsigned offset = 0;
|
||||||
void *buf;
|
void *buf;
|
||||||
int i;
|
int i;
|
||||||
callframe_t *cframe;
|
callframe_t *cframe;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue