Skip to content
Extraits de code Groupes Projets
Valider c603c21b rédigé par Amar Takhar's avatar Amar Takhar
Parcourir les fichiers

Print a message to the user and exit(1) if HOME is not set in the users environment.

Originally committed to SVN as r5324.
parent 436ea23e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -38,7 +38,8 @@ const std::string home() { ...@@ -38,7 +38,8 @@ const std::string home() {
char *ehome; char *ehome;
ehome = getenv("HOME"); ehome = getenv("HOME");
if (ehome == NULL) { if (ehome == NULL) {
//XXX: explode here. printf("The HOME environment variable must be set\n");
exit(1);
} }
std::string home(ehome); std::string home(ehome);
free(ehome); free(ehome);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter