version 1.36, 2000/01/15 14:52:18
|
version 1.37, 2000/03/14 14:45:53
|
Line 103 void rpmDirFree(rpmDirPtr dir) {
|
Line 103 void rpmDirFree(rpmDirPtr dir) {
|
if (dir->mirrors != NULL) debugFree(dir->mirrors); |
if (dir->mirrors != NULL) debugFree(dir->mirrors); |
if (dir->trust != NULL) debugFree(dir->trust); |
if (dir->trust != NULL) debugFree(dir->trust); |
if (dir->rpmdir != NULL) debugFree(dir->rpmdir); |
if (dir->rpmdir != NULL) debugFree(dir->rpmdir); |
|
if (dir->dbpath != NULL) debugFree(dir->dbpath); /* Added by A. Gibert */ |
dir->next = NULL; |
dir->next = NULL; |
memset(dir, 0, sizeof(rpmDir)); |
memset(dir, 0, sizeof(rpmDir)); |
debugFree(dir); |
debugFree(dir); |
Line 365 void addConfigEntry(char *rpmdir, char *
|
Line 366 void addConfigEntry(char *rpmdir, char *
|
cur->dir = debugStrdup(value); |
cur->dir = debugStrdup(value); |
} else if (!strcasecmp(name, "subdir")) { |
} else if (!strcasecmp(name, "subdir")) { |
cur->subdir = debugStrdup(value); |
cur->subdir = debugStrdup(value); |
|
} else if (!strcasecmp(name, "dbpath")) { /* Added by A. Gibert */ |
|
cur->dbpath = debugStrdup(value); /* Added by A. Gibert */ |
} else if (!strcasecmp(name, "url")) { |
} else if (!strcasecmp(name, "url")) { |
cur->url = debugStrdup(value); |
cur->url = debugStrdup(value); |
} else if (!strcasecmp(name, "ftp")) { |
} else if (!strcasecmp(name, "ftp")) { |