nevermind I can't free getenv() Xddd
This commit is contained in:
parent
cca7224559
commit
c08e2398ab
1 changed files with 0 additions and 2 deletions
|
@ -218,14 +218,12 @@ int main(int argc, char *argv[]) {
|
||||||
fprintf(stderr, "error: failed formatting config dir (this shouldn't happen)");
|
fprintf(stderr, "error: failed formatting config dir (this shouldn't happen)");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
free(home);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (asprintf(&config_path, "%s/modfetch.conf", config_dir) < 0) {
|
if (asprintf(&config_path, "%s/modfetch.conf", config_dir) < 0) {
|
||||||
fprintf(stderr, "error: failed formatting config path (this shouldn't happen)");
|
fprintf(stderr, "error: failed formatting config path (this shouldn't happen)");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
free(config_dir);
|
|
||||||
|
|
||||||
for (size_t i = 1; i < (size_t)argc; ++i) {
|
for (size_t i = 1; i < (size_t)argc; ++i) {
|
||||||
if (strcmp(argv[i], "-c") == 0 || strcmp(argv[i], "--config") == 0) {
|
if (strcmp(argv[i], "-c") == 0 || strcmp(argv[i], "--config") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue