mirror of
https://gitlab.com/klmp200/fish.git
synced 2024-11-22 00:33:20 +00:00
0 leak Memory mother fuckers
This commit is contained in:
parent
cb2dc7f747
commit
1ca783f73d
@ -37,12 +37,12 @@ int fishCd(WordArray *args) {
|
||||
perror("fish");
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
freeWordArray(args);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
int fishHelp(WordArray *args) {
|
||||
int i;
|
||||
args->size = args->size;
|
||||
printf("Bartuccio Antoine, Amalvy Arthur, Yann Chevanton\n");
|
||||
printf("Tape tes putains de noms de programmes et tes arguments de merde et tabasse ENTER !\n");
|
||||
printf("Les commandes suivantes sont internes :\n");
|
||||
@ -50,11 +50,12 @@ int fishHelp(WordArray *args) {
|
||||
printf("\t%s\n", builtinCommandsStr[i]);
|
||||
}
|
||||
printf("Et sinon pour le reste, RTFM !");
|
||||
return 0;
|
||||
freeWordArray(args);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
int fishExit(WordArray *args) {
|
||||
args->size = args->size;
|
||||
freeWordArray(args);
|
||||
return EXIT_SIGNAL;
|
||||
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ char *getInsult(){
|
||||
int picked = 0;
|
||||
char *insults[] = {
|
||||
(char *) "Apprend à écrire crétin !",
|
||||
(char *) "Bolos !",
|
||||
(char *) "Boloss !",
|
||||
(char *) "Mois aussi je sais écrire de la merde, pourtant je le fait pas !",
|
||||
(char *) "Oh ! Une erreur ! Comme ta vie en fait...",
|
||||
(char *) "Nul !",
|
||||
|
Loading…
Reference in New Issue
Block a user