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:
Richard Frith-Macdonald 2002-03-22 17:52:33 +00:00
parent aa6df021f9
commit 3ac2bab295
3 changed files with 3 additions and 4 deletions

View file

@ -821,7 +821,7 @@ typedef enum {
forName: (NSString*)name
{
NSRunLoop *loop = [NSRunLoop currentRunLoop];
GSPortCom *com;
GSPortCom *com = nil;
unsigned len;
NSDate *limit;

View file

@ -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);

View file

@ -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;