Fail on glob

This commit is contained in:
Casey 2023-11-25 19:49:35 +03:00
parent baedcf23bb
commit 788d612921
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

2
cbt.h
View File

@ -599,7 +599,7 @@ void _cbt_lib_src(struct cbt_lib *lib, ...) {
glob_t globbuf;
for (char *arg = va_arg(args, char *); arg; arg = va_arg(args, char *)) {
glob(arg, GLOB_APPEND | GLOB_BRACE, _cbt_globerr, &globbuf);
CBT_FAIL(glob(arg, GLOB_APPEND | GLOB_BRACE, _cbt_globerr, &globbuf) != 0);
}
for (size_t i = 0; i < globbuf.gl_pathc; i++) {