Преглед изворни кода

Fix incompatible pointer type warning

Well, needless to say I'm very happy this didn't end up exploding.  I'm
surprised GCC and clang let this through.
jp9000 пре 11 година
родитељ
комит
c5c8cba74d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      libobs/util/platform-nix.c

+ 1 - 1
libobs/util/platform-nix.c

@@ -274,7 +274,7 @@ int os_glob(const char *pattern, int flags, os_glob_t *pglob)
 void os_globfree(os_glob_t pglob)
 void os_globfree(os_glob_t pglob)
 {
 {
 	if (pglob) {
 	if (pglob) {
-		struct posix_glob_info *pgi = (struct linux_glob_info*)pglob;
+		struct posix_glob_info *pgi = (struct posix_glob_info*)pglob;
 		globfree(&pgi->gl);
 		globfree(&pgi->gl);
 
 
 		bfree(pgi->base.gl_pathv);
 		bfree(pgi->base.gl_pathv);