- if (!(homedir = getenv("HOME")))
- homedir = DEFAULT_HOMEDIR;
- len = strlen(homedir) + strlen(CONFIGFILE_LOC) + 1;
- if (!(configfile = calloc(len, sizeof(char))))
- goto out_noopen;
- snprintf(configfile, len, "%s%s", homedir, CONFIGFILE_LOC);
-
- if (!(fp = fopen(configfile, "r")))