Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 2950379b rédigé par Kubat's avatar Kubat
Parcourir les fichiers

FIX: Fix the config detection when XDG_CONFIG_HOME is present in the ENV

parent 70c554c7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #2248 en échec
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
- Fix: fix the \_\_insert command - Fix: fix the \_\_insert command
- Fix: linking on some platforms where the sqlite3_hard_heap_limit64 function is not present - Fix: linking on some platforms where the sqlite3_hard_heap_limit64 function is not present
- Fix: Malloc the correct struct and store it into the right pointer type... - Fix: Malloc the correct struct and store it into the right pointer type...
- Fix: config detection when XDG_CONFIG_HOME is present in the ENV, we didn't update the conf path with it
- Change: now have macros to wrap malloc calls - Change: now have macros to wrap malloc calls
- Change: use the trie data structure to be more efficient at fetching the correct command from its name at handle time (listen.c) - Change: use the trie data structure to be more efficient at fetching the correct command from its name at handle time (listen.c)
- Change: enable LTO when detecting llvm compiler - Change: enable LTO when detecting llvm compiler
......
...@@ -192,6 +192,7 @@ config_detect_file(char *conf, size_t conf_len) ...@@ -192,6 +192,7 @@ config_detect_file(char *conf, size_t conf_len)
if (home && strlen(home) < conf_len) { if (home && strlen(home) < conf_len) {
/* Skip the strncat to not append the '.config/' to /* Skip the strncat to not append the '.config/' to
the XDG_CONFIG_HOME which must already have this directory in it */ the XDG_CONFIG_HOME which must already have this directory in it */
memcpy(conf, home, (strlen(home) + 1) * sizeof(char));
strncat(conf, "/lektor/lektor.ini", conf_len - 1); strncat(conf, "/lektor/lektor.ini", conf_len - 1);
goto skip_this_strcat; goto skip_this_strcat;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter