no empty homedir
This commit is contained in:
parent
e80b76ffbf
commit
a86ce551d4
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/* The main file. */
|
/* The main file. */
|
||||||
|
|
||||||
/* $Id: main.c,v 1.43 2005/03/31 20:10:57 sean Exp $ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@ -101,6 +101,9 @@ int proz_init(int argc, char **argv)
|
|||||||
sprintf(netrc_file, "%s/%s", libprozrtinfo.home_dir, ".netrc");
|
sprintf(netrc_file, "%s/%s", libprozrtinfo.home_dir, ".netrc");
|
||||||
|
|
||||||
libprozrtinfo.netrc_list = parse_netrc(netrc_file);
|
libprozrtinfo.netrc_list = parse_netrc(netrc_file);
|
||||||
|
} else {
|
||||||
|
/* Make sure home dir is never NULL */
|
||||||
|
libprozrtinfo.home_dir = kstrdup(".");
|
||||||
}
|
}
|
||||||
|
|
||||||
libprozrtinfo.dl_dir = kstrdup(".");
|
libprozrtinfo.dl_dir = kstrdup(".");
|
||||||
|
Loading…
Reference in New Issue
Block a user