bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uninitialized variable "path" in XGFontManager


From: Nicola Pero
Subject: Re: Uninitialized variable "path" in XGFontManager
Date: Mon, 25 Jun 2001 11:31:39 +0100 (BST)

Thanks!

I applied a patch to CVS (freeze-0_7_0 branch) to fix this.  I added code
which not only logs the problem, but attempts to create the missing
directory as well - so that we get the application running and hopefully
also the fonts right.

thanks for your contribution

> I finally tracked down a problem I was having with running applications.
> 
> If I had not created a Library directory under the GNUstep directory in
> my home directory, ie. ~/GNUstep/Library does not exist, then GNUstep
> apps would segfault on startup.
> 
> I have tracked it down to the use of the path variable in
> XGFontManager.m on line 90.  If the paths array has 0 entries, then
> then path is not assigned a value.  This variable is then passed to
> the NSFileManager which tries to get the cString value of the
> uninitialized path variable, causing the seg fault.
> 
> I have included a patch which fixes the problem.  I made a guess
> as to what the log message should be.
> 
> Kim
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]