Browse Source

Merge branch 'minpoints' of UBB/points into master

pull/2/head
Chris Cromer 2 years ago
committed by Gitea
parent
commit
1368d587f7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/read_file.c

+ 1
- 1
src/read_file.c View File

@ -250,7 +250,7 @@ int read_file(char *filename, point_t **points, unsigned int *n) {
buffer = NULL;
size = 0;
}
if (j < *n) {
if (j < *n || *n < 2) {
fprintf(stderr, "Error: No hay suficiente puntos!\n");
return 9;
}


Loading…
Cancel
Save