I'm so sorry krizej

This commit is contained in:
jacekpoz 2024-02-14 15:47:08 +01:00
parent fa46131ee5
commit e405ccdf2a
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -14,7 +14,7 @@ char *default_config_path(void) {
char *config_dir = getenv("XDG_CONFIG_HOME"); char *config_dir = getenv("XDG_CONFIG_HOME");
if (config_dir == NULL) { if (config_dir == NULL) {
char *home = getenv("$HOME"); char *home = getenv("HOME");
if (asprintf(&config_dir, "%s/.config", home) < 0) { if (asprintf(&config_dir, "%s/.config", home) < 0) {
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);