mirror of
https://github.com/simon987/sist2.git
synced 2025-12-13 15:29:04 +00:00
Update dependencies
This commit is contained in:
@@ -238,7 +238,7 @@ int index_args_validate(index_args_t *args, int argc, const char **argv) {
|
||||
|
||||
args->script = malloc(info.st_size + 1);
|
||||
res = read(fd, args->script, info.st_size);
|
||||
if (res == -1) {
|
||||
if (res < 0) {
|
||||
fprintf(stderr, "Error reading script file '%s': %s\n", args->script_path, strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user