diff --git a/src/app/core_logic/responsable.c b/src/app/core_logic/responsable.c index 8be0ff7..701a61c 100644 --- a/src/app/core_logic/responsable.c +++ b/src/app/core_logic/responsable.c @@ -10,6 +10,7 @@ int chargementArticles(int tRef[], float tPoids[], float tVol[], float tPrix[], if ( fe == NULL) { perror("fopen"); + return -1; } while ( fscanf(fe,"%d %f %f %f", &ref, &poids, &volume, &prix) == 4) {