Add check for glob() function
This commit is contained in:
parent
00f4186cfe
commit
3fcd9e674d
config
|
@ -0,0 +1,14 @@
|
|||
#include <glob.h>
|
||||
|
||||
int glob_error(const char *epath, int errno)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
glob_t files;
|
||||
const char *pattern = "*";
|
||||
glob(pattern, GLOB_MARK, glob_error, &files);
|
||||
globfree(&files);
|
||||
}
|
Loading…
Reference in New Issue