mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcalc/ds_xlib.c: Coverity CID 175167; uninit value
This commit is contained in:
parent
d5c304d476
commit
45bccb474c
1 changed files with 3 additions and 1 deletions
|
@ -263,8 +263,10 @@ ds_save_resources(XrmDatabase rDB, char *filename)
|
|||
{
|
||||
if ((filename = getenv("DTCALCDEF")) == NULL)
|
||||
{
|
||||
if ( !(home = getenv("HOME")) )
|
||||
return 1;
|
||||
|
||||
size_t fileLen = strlen(home) + 18;
|
||||
home = getenv("HOME");
|
||||
if ( (filename = calloc(1, fileLen)) != NULL )
|
||||
{
|
||||
needsFree = true;
|
||||
|
|
Loading…
Reference in a new issue